From b95eee120ee593bbc9cce4330beded2d3644ef49 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 23 Sep 2023 15:46:39 +0000 Subject: [PATCH] FIX THE FRICKING THE UHHH THINGY IDK ANYMORE PLEASE HELP AAA --- html/poketube.ejs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index a673317f..cab8fdf1 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -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}`; }