Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions src/account.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">

<head>
Expand Down Expand Up @@ -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() {
Expand Down