From f594dc51598b47f4d3c53ce6878b77ceb1d30fc2 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 5 Oct 2025 22:38:42 -0700 Subject: [PATCH] Add files via upload --- ASAshop.html | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ASAshop.html b/ASAshop.html index d7276a7..934141f 100644 --- a/ASAshop.html +++ b/ASAshop.html @@ -500,17 +500,11 @@ // Clicking the button should start Discord OAuth on your server. // Adjust the path if your backend uses a different route. document.getElementById('loginDiscord').addEventListener('click', (e) => { - // If already signed in, do nothing (or open account page) - const label = document.getElementById('whoami').textContent || ''; - if (label.startsWith('Signed in as')) return; - e.preventDefault(); const redirect = encodeURIComponent(location.href); - // Common patterns you might be using on the Pi: - // /api/auth/discord or /auth/discord - // Change this to match your server’s route. location.href = `${API}/api/auth/discord?redirect=${redirect}`; }); + /* ===== Products (unique IDs) ===== */ const products = [