mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-25 11:48:56 +01:00
FIX THE FRICKING THE UHHH THINGY IDK ANYMORE PLEASE HELP AAA
This commit is contained in:
parent
c7a2c08bbb
commit
b95eee120e
1 changed files with 2 additions and 1 deletions
|
@ -1750,8 +1750,9 @@ if (isFirstLoad) {
|
||||||
const languageCode = localStorage.getItem("Language");
|
const languageCode = localStorage.getItem("Language");
|
||||||
const regionCode = localStorage.getItem("Region");
|
const regionCode = localStorage.getItem("Region");
|
||||||
const currentURL = location.href;
|
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}`;
|
location.href = currentURL + `®ion=${regionCode}&hl=${languageCode}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue