diff --git a/src/account.html b/src/account.html index 503b6a5..edd080e 100644 --- a/src/account.html +++ b/src/account.html @@ -1,4 +1,4 @@ - + @@ -171,13 +171,7 @@ function registerScratchAuth() { const messageBox = document.getElementById("scratchMessage"); const redirectLocation = btoa(window.location.href); - const authUrl = `https://scratch-id.onrender.com/?redirect=${redirectLocation}&name=Scratch%20Coding%20Hut`; - - messageBox.style.color = "green"; - messageBox.textContent = "Redirecting to ScratchID... Follow the steps there."; - setTimeout(() => { - window.location.href = authUrl; - }, 2000); + javascript("window.open("https://scratch-id.onrender.com/?redirect=${redirectLocation}&name=Scratch%20Coding%20Hut", "popupWindow", "width=600,height=400,resizable=yes,scrollbars=yes");") } function logout() {