@@ -22,14 +22,13 @@ const _assert: typeof exp._assert = exp._assert;
22
22
23
23
/** Platform-agnostic popup-redirect resolver */
24
24
export class CompatPopupRedirectResolver
25
- implements exp . PopupRedirectResolverInternal {
25
+ implements exp . PopupRedirectResolverInternal
26
+ {
26
27
// Create both resolvers for dynamic resolution later
27
- private readonly browserResolver : exp . PopupRedirectResolverInternal = exp . _getInstance (
28
- exp . browserPopupRedirectResolver
29
- ) ;
30
- private readonly cordovaResolver : exp . PopupRedirectResolverInternal = exp . _getInstance (
31
- exp . cordovaPopupRedirectResolver
32
- ) ;
28
+ private readonly browserResolver : exp . PopupRedirectResolverInternal =
29
+ exp . _getInstance ( exp . browserPopupRedirectResolver ) ;
30
+ private readonly cordovaResolver : exp . PopupRedirectResolverInternal =
31
+ exp . _getInstance ( exp . cordovaPopupRedirectResolver ) ;
33
32
// The actual resolver in use: either browserResolver or cordovaResolver.
34
33
private underlyingResolver : exp . PopupRedirectResolverInternal | null = null ;
35
34
_redirectPersistence = exp . browserSessionPersistence ;
@@ -103,6 +102,8 @@ export class CompatPopupRedirectResolver
103
102
// We haven't yet determined whether or not we're in Cordova; go ahead
104
103
// and determine that state now.
105
104
const isCordova = await _isCordova ( ) ;
106
- this . underlyingResolver = isCordova ? this . cordovaResolver : this . browserResolver ;
105
+ this . underlyingResolver = isCordova
106
+ ? this . cordovaResolver
107
+ : this . browserResolver ;
107
108
}
108
109
}
0 commit comments