diff --git a/public/js/login.js b/public/js/login.js index 7899932..d01a48f 100644 --- a/public/js/login.js +++ b/public/js/login.js @@ -38,7 +38,7 @@ dom("submit").addEventListener("click", function() { if (json.valid) { setCookie("token", json.token); localStorage.setItem("token", json.token); - window.location.href = "/editor"; + window.location.href = "/home"; } else { dom("submit").removeAttribute("disabled"); showlog(`Unable to login! Reason: ${json.reason}`); diff --git a/public/js/signup.js b/public/js/signup.js index e4fe014..5438d64 100644 --- a/public/js/signup.js +++ b/public/js/signup.js @@ -38,7 +38,7 @@ dom("submit").addEventListener("click", function() { if (json.valid) { setCookie("token", json.token); localStorage.setItem("token", json.token); - window.location.href = "/editor"; + window.location.href = "/home"; } else { dom("submit").removeAttribute("disabled"); showlog(`Unable to create account! Reason: ${json.reason}`);