mirror of
https://codeberg.org/ashley/poke
synced 2025-04-05 17:17:59 +00:00
FIX THE FRICKING THE UHHH THINGY IDK ANYMORE PLEASE HELP AAA
This commit is contained in:
parent
c7a2c08bbb
commit
b95eee120e
@ -1750,8 +1750,9 @@ if (isFirstLoad) {
|
||||
const languageCode = localStorage.getItem("Language");
|
||||
const regionCode = localStorage.getItem("Region");
|
||||
const currentURL = location.href;
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
|
||||
if (languageCode && regionCode) {
|
||||
if (!urlParams.has('hl') && !urlParams.has('region') && languageCode && regionCode) {
|
||||
location.href = currentURL + `®ion=${regionCode}&hl=${languageCode}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user