Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Madman10K committed Oct 31, 2023
1 parent 11e0d70 commit 0f177d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ function redirectWithLanguage(selectWidget, localStorageLang, previous)
redirect += url[i] + "/";

selectWidget.value = localStorageLang;
console.log(redirect);
//location.href = redirect.slice(0, -1);
location.href = redirect.slice(0, -1);
}

function setLanguage()
Expand All @@ -145,7 +144,6 @@ function setLanguageBox()
{
$("lang-select").addEventListener("change", function(){
let old = window.localStorage.getItem("language");
console.log(old);
window.localStorage.setItem("language", this.value);
redirectWithLanguage(this, this.value, old);
})
Expand Down

0 comments on commit 0f177d8

Please sign in to comment.