From f35dae24b74925b6b5a9b3e9e48af8c6799ed655 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 1 Dec 2025 17:07:02 +0100 Subject: [PATCH] fix(oauth): close popup window in parent window Signed-off-by: Christoph Wurst --- src/integration/oauth.js | 1 + src/main-oauth-popup.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integration/oauth.js b/src/integration/oauth.js index 662be64a0b..3173e00716 100644 --- a/src/integration/oauth.js +++ b/src/integration/oauth.js @@ -22,6 +22,7 @@ export async function getUserConsent(redirectUrl) { if (data === 'DONE') { logger.info('OAUTH2 user consent given') + ssoWindow.close() resolve() } }) diff --git a/src/main-oauth-popup.js b/src/main-oauth-popup.js index 0a2d3b13f1..898170c624 100644 --- a/src/main-oauth-popup.js +++ b/src/main-oauth-popup.js @@ -20,5 +20,4 @@ new View({}).$mount('#mail-oauth-done') if (window.opener) { window.opener.postMessage('DONE') - window.close() }