mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-16 02:22:07 -05:00
fix debug code
This commit is contained in:
parent
fc2902208f
commit
e1b852c3b3
@ -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:")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user