diff options
author | 2021-03-08 14:18:05 +0300 | |
---|---|---|
committer | 2021-03-08 14:18:05 +0300 | |
commit | e6c1116c37d4bd14c24f54e43361aa8267da12a8 (patch) | |
tree | fbba023c0d47405ad9ed1d3183664a9ef6f99d0d /src/api | |
parent | Renables OAuth Button On Failure (diff) |
Opens OAuth In New Tab
Removes the window features from the OAuth window to make it open in a
new tab if the client prefers.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/auth.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/api/auth.ts b/src/api/auth.ts index 024292c..dd1f749 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -106,8 +106,7 @@ export async function getDiscordCode(scopes: OAuthScopes[], disableFunction?: (d // Open login window const windowRef = window.open( `https://discord.com/api/oauth2/authorize?client_id=${OAUTH2_CLIENT_ID}&state=${state}&response_type=code&scope=${scopeString}&redirect_uri=${redirectURI}&prompt=none`, - "Discord_OAuth2", - "height=700,width=500,location=no,menubar=no,resizable=no,status=no,titlebar=no,left=300,top=300" + "Discord_OAuth2" ); // Clean up on login |