From b0c2d119f61ec4ffe1aae6c891eef7979f8c0d0a Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Tue, 12 Mar 2024 18:22:33 +0000 Subject: [PATCH] Remove that dumb unneeded refresh thing --- static/js/homeserver.js | 2 +- static/js/login.js | 5 ----- static/js/signup.js | 5 ----- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/static/js/homeserver.js b/static/js/homeserver.js index 46cd69e..fb3bbb0 100644 --- a/static/js/homeserver.js +++ b/static/js/homeserver.js @@ -32,7 +32,7 @@ changeButton.addEventListener("click", (event) => { if (response.status == 200) { localStorage.setItem("homeserverURL", remote) - window.location.href = document.referrer + "?refresh"; + window.location.href = document.referrer; } else if (response.status == 404) { statusBox.innerText = "Not a valid homeserver!" diff --git a/static/js/login.js b/static/js/login.js index 0a42b4a..a415070 100644 --- a/static/js/login.js +++ b/static/js/login.js @@ -15,11 +15,6 @@ if (remote == null) { remote = "https://notes.hectabit.org" } -const queryString = window.location.search; -if (queryString == "?redirect") { - location.reload(); -} - let usernameBox = document.getElementById("usernameBox") let passwordBox = document.getElementById("passwordBox") let statusBox = document.getElementById("statusBox") diff --git a/static/js/signup.js b/static/js/signup.js index fff1a52..e2a0221 100644 --- a/static/js/signup.js +++ b/static/js/signup.js @@ -15,11 +15,6 @@ if (remote == null) { remote = "https://notes.hectabit.org" } -const queryString = window.location.search; -if (queryString == "?redirect") { - location.reload(); -} - let usernameBox = document.getElementById("usernameBox") let passwordBox = document.getElementById("passwordBox") let statusBox = document.getElementById("statusBox")