diff --git a/js/finalize.js b/js/finalize.js index e90818d..8b87b1a 100644 --- a/js/finalize.js +++ b/js/finalize.js @@ -211,7 +211,7 @@ function saveDynamicDataToFile() { } else { encValue = "TLS"; } - var exclWifi = getCookie(i + "") + var exclWifi = getCookie(i + "exclWifi") fileString += "\n"; fileString += "DNSSettings\n"; diff --git a/js/tool.js b/js/tool.js index 56ec692..2a4e58e 100644 --- a/js/tool.js +++ b/js/tool.js @@ -35,10 +35,10 @@ function addToList() { document.cookie = runningNo + "useCell=" + document.getElementById("useCell").checked + ";" + expires + ";path=/; SameSite=Strict; Secure"; document.cookie = runningNo + "lockProfile=" + document.getElementById("lockProfile").checked + ";" + expires + ";path=/; SameSite=Strict; Secure"; - runningNo++; + runningNo = runningNo + 1; document.cookie = "runningNo=" + runningNo + ";" + expires + ";path=/; SameSite=Strict; Secure"; - window.location.href = "/finalize.html" + window.location.href = "/finalize.html"; } function switchToHTTPS() {