diff --git a/src/Login.ts b/src/Login.ts index efb6b500f..0af304a44 100644 --- a/src/Login.ts +++ b/src/Login.ts @@ -80,6 +80,10 @@ export async function handleLogin () { // TODO: better error, make link clickable, etc. subtabElement.textContent = 'Login is not available here, go to https://synergism.cc instead!' } else if (document.cookie.length) { + if (!member) { + console.log(response, globalBonus, member, personalBonus, document.cookie) + } + currentBonus.textContent += ` You also receive an extra ${personalBonus}% bonus for being a Patreon member and/or boosting the Discord server! Multiplicative with global bonus!` @@ -148,17 +152,13 @@ export async function handleLogin () { } else { // User is not logged in subtabElement.innerHTML = ` - -
-
- - - - - - -
+ + ` + + subtabElement.querySelector('button[value="Login"]')?.addEventListener('click', () => { + location.assign('https://discord.com/oauth2/authorize?response_type=code&client_id=1124509674536972329&scope=guilds+guilds.members.read+identify&redirect_uri=https%3A%2F%2Fsynergism.cc%2Fdiscord%2Foauth%2F&prompt=consent') + }) } }