diff --git a/src/helpers/auth.ts b/src/helpers/auth.ts index 1281e88..2560420 100644 --- a/src/helpers/auth.ts +++ b/src/helpers/auth.ts @@ -30,6 +30,9 @@ export default async () => { if (url.startsWith("https://desktop.tidal.com")) { const code = new URL(url) + webview.unbind("getURL"); + webview.destroy() + await finalizeLogin(code.search); didLogin = true; } @@ -42,8 +45,6 @@ export default async () => { while (!didLogin) { await new Promise((resolve) => setTimeout(resolve, 0)); } - - webview.destroy() } return {