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 ); }