FIX THE FRICKING THE UHHH THINGY IDK ANYMORE PLEASE HELP AAA

This commit is contained in:
Ashley 2023-09-23 15:46:39 +00:00
parent c7a2c08bbb
commit b95eee120e

View file

@ -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 + `&region=${regionCode}&hl=${languageCode}`; location.href = currentURL + `&region=${regionCode}&hl=${languageCode}`;
} }