We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2892b39 + 8534d8b commit 6bbfb63Copy full SHA for 6bbfb63
index.js
@@ -194,6 +194,10 @@ function _waitForRedirectAsync(returnUrl: string): Promise<RedirectResult> {
194
*/
195
function AppStateActiveOnce(): Promise<void> {
196
return new Promise(function (resolve) {
197
+ // Browser can be closed before handling AppState change
198
+ if (AppState.currentState === 'active') {
199
+ return resolve();
200
+ }
201
function _handleAppStateChange(nextAppState: AppStateStatus) {
202
if (nextAppState === 'active') {
203
AppState.removeEventListener('change', _handleAppStateChange);
0 commit comments