Skip to content

Commit

Permalink
fix(oauth): prevent false warning when opening Google OAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek committed May 16, 2024
1 parent 2f0fa92 commit b8c4127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/reader-activation/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit b8c4127

Please sign in to comment.