t
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
const kljuc = new URLSearchParams(window.location.search).get("kljuc");
|
||||
|
||||
function navigateTop(page) {
|
||||
window.open(new URL(page, window.location.href).href, "_top");
|
||||
}
|
||||
|
||||
function getCookie(name) {
|
||||
const match = document.cookie.split(";").map(c => c.trim()).find(c => c.startsWith(name + "="));
|
||||
return match ? match.split("=")[1] : null;
|
||||
@@ -83,7 +87,7 @@ function getKey() {
|
||||
})
|
||||
.then(data => {
|
||||
console.log("Success:", data);
|
||||
window.location.href = "index.html";
|
||||
navigateTop("index.html");
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error("Error:", error);
|
||||
|
||||
Reference in New Issue
Block a user