fix debug code

This commit is contained in:
sky 2024-01-13 16:19:45 -05:00
parent fc2902208f
commit e1b852c3b3

View File

@ -170,7 +170,7 @@ if (localStorage.getItem("selenite.password")) {
} }
} }
if (JSON.parse(localStorage.getItem("selenite.passwordAtt"))) { if (JSON.parse(localStorage.getItem("selenite.passwordAtt"))) {
if (JSON.parse(localStorage.getItem("selenite.passwordAtt"))[0] == false && Math.floor(Date.now() / 1000) - JSON.parse(localStorage.getItem("selenite.passwordAtt"))[1] < 1) { if (JSON.parse(localStorage.getItem("selenite.passwordAtt"))[0] == false && Math.floor(Date.now() / 1000) - JSON.parse(localStorage.getItem("selenite.passwordAtt"))[1] < 600) {
location.href = "https://google.com"; location.href = "https://google.com";
} }
} }
@ -182,7 +182,7 @@ if (location.hash) {
if(!location.pathname.includes("gba")) { if(!location.pathname.includes("gba")) {
localStorage.setItem("selenite.password", location.hash.substring(1)); localStorage.setItem("selenite.password", location.hash.substring(1));
if (JSON.parse(localStorage.getItem("selenite.passwordAtt"))) { if (JSON.parse(localStorage.getItem("selenite.passwordAtt"))) {
if (JSON.parse(localStorage.getItem("selenite.passwordAtt"))[0] == true && Math.floor(Date.now() / 1000) - JSON.parse(localStorage.getItem("selenite.passwordAtt"))[1] < 1) { if (JSON.parse(localStorage.getItem("selenite.passwordAtt"))[0] == true && Math.floor(Date.now() / 1000) - JSON.parse(localStorage.getItem("selenite.passwordAtt"))[1] < 600) {
console.log("already good :)"); console.log("already good :)");
} else { } else {
let pass = prompt("Type the right password:") let pass = prompt("Type the right password:")