From b8c4127e54bcade616fc07dbf8f64772eb22c3a2 Mon Sep 17 00:00:00 2001 From: Adam Cassis Date: Thu, 16 May 2024 15:27:33 +0200 Subject: [PATCH] fix(oauth): prevent false warning when opening Google OAuth --- assets/reader-activation/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/reader-activation/auth.js b/assets/reader-activation/auth.js index dbd3dc461b..e635fd8a35 100644 --- a/assets/reader-activation/auth.js +++ b/assets/reader-activation/auth.js @@ -631,7 +631,7 @@ window.newspackRAS.push( function ( readerActivation ) { } else if ( authWindow ) { authWindow.location = data; const interval = setInterval( () => { - if ( ! googleOAuthSuccess ) { + if ( ! googleOAuthSuccess && authWindow.closed ) { if ( googleLoginForm?.endLoginFlow ) { googleLoginForm.endLoginFlow( newspack_reader_auth_labels.login_canceled, 401 ); }