Skip to content

Commit

Permalink
fddfg
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Oct 15, 2024
1 parent 753a525 commit 86e4a6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,11 @@ setShowCountryButtons(false)

const location = `/${options?.language !== "en" ? options?.language : ""}`
if(!window.location.pathname.includes(location)) {
console.log("changing lang", location)
window.location.href = location+qPsuffix;
}
if(options?.language === "en" && ["es", "fr", "de", "ru"].includes(window.location.pathname.split("/")[1])) {
console.log("changing lang", location)
window.location.href = "/"+qPsuffix;
}
} catch(e) {}
Expand Down
1 change: 1 addition & 0 deletions components/localizedHome.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function LocalizedHome({ path }) {
}
} else {
if(path !== language) {
console.log("Redirecting to", language);
window.location.href = `/${language}${qPsuffix}`;
}
}
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ Key is saved at: /etc/letsencrypt/live/www.worldguessr.com/privkey.pem
}
if (json.type === 'verify') {
// account verification
if((!json.secret) || json.secret === 'not_logged_in') {
if((!json.secret) ||(json.secret === 'not_logged_in')) {
if(!player.verified) {

// guest mode
Expand Down

0 comments on commit 86e4a6f

Please sign in to comment.