Skip to content

Commit 215de88

Browse files
Merge pull request #12113 from nextcloud/fix/oauth/close-popup-parent
fix(oauth): close popup window in parent window
2 parents d3a945b + 1fdf307 commit 215de88

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/integration/oauth.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export async function getUserConsent(redirectUrl) {
2222

2323
if (data === 'DONE') {
2424
logger.info('OAUTH2 user consent given')
25+
ssoWindow.close()
2526
resolve()
2627
}
2728
})

src/main-oauth-popup.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ new View({}).$mount('#mail-oauth-done')
2020

2121
if (window.opener) {
2222
window.opener.postMessage('DONE')
23-
window.close()
2423
}

0 commit comments

Comments
 (0)