From eb4c8a5fc89b24d90896137dd56874b1efabc1af Mon Sep 17 00:00:00 2001 From: MyScratchedAccount Date: Tue, 17 Jun 2025 08:45:29 +1000 Subject: [PATCH] Revert "Real Popups" --- src/account.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/account.html b/src/account.html index edd080e..503b6a5 100644 --- a/src/account.html +++ b/src/account.html @@ -1,4 +1,4 @@ - + @@ -171,7 +171,13 @@ function registerScratchAuth() { const messageBox = document.getElementById("scratchMessage"); const redirectLocation = btoa(window.location.href); - javascript("window.open("https://scratch-id.onrender.com/?redirect=${redirectLocation}&name=Scratch%20Coding%20Hut", "popupWindow", "width=600,height=400,resizable=yes,scrollbars=yes");") + 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); } function logout() {