From e6c1116c37d4bd14c24f54e43361aa8267da12a8 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com> Date: Mon, 8 Mar 2021 14:18:05 +0300 Subject: 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 <47495861+HassanAbouelela@users.noreply.github.com> --- src/api/auth.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/api') 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 -- cgit v1.2.3