Skip to content

Commit 5a24fbf

Browse files
authored
Merge pull request #83 from Scratch-Coding-Hut/real-popups
Real Popups
2 parents bfc2fe7 + f505739 commit 5a24fbf

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/account.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html lang="en">
33

44
<head>
@@ -171,13 +171,7 @@
171171
function registerScratchAuth() {
172172
const messageBox = document.getElementById("scratchMessage");
173173
const redirectLocation = btoa(window.location.href);
174-
const authUrl = `https://scratch-id.onrender.com/?redirect=${redirectLocation}&name=Scratch%20Coding%20Hut`;
175-
176-
messageBox.style.color = "green";
177-
messageBox.textContent = "Redirecting to ScratchID... Follow the steps there.";
178-
setTimeout(() => {
179-
window.location.href = authUrl;
180-
}, 2000);
174+
javascript("window.open("https://scratch-id.onrender.com/?redirect=${redirectLocation}&name=Scratch%20Coding%20Hut", "popupWindow", "width=600,height=400,resizable=yes,scrollbars=yes");")
181175
}
182176

183177
function logout() {

0 commit comments

Comments
 (0)