From fca32bf7f2ec4ef644afdafbefd78dbb75b5ecee Mon Sep 17 00:00:00 2001 From: sugoidogo Date: Sun, 26 Jan 2025 12:11:22 +0000 Subject: [PATCH] empty promise to keep client from busying browser during redirect --- static/TwitchAuth.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/static/TwitchAuth.mjs b/static/TwitchAuth.mjs index 0a7b869..dc518c9 100644 --- a/static/TwitchAuth.mjs +++ b/static/TwitchAuth.mjs @@ -84,6 +84,7 @@ export function requestAuthCode(client_id, ...scopes) { url.searchParams.append('client_id', client_id) url.searchParams.append('scope', scopes.join(' ')) location.assign(url+'&redirect_uri='+redirect_uri) + return new Promise() } /**