File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,7 @@ export async function getToken(
40
40
}
41
41
42
42
await updateVapidKey ( messaging , options ?. vapidKey ) ;
43
- await updateSwReg (
44
- messaging ,
45
- options ?. serviceWorkerRegistration
46
- ) ;
43
+ await updateSwReg ( messaging , options ?. serviceWorkerRegistration ) ;
47
44
48
45
return getTokenInternal ( messaging ) ;
49
46
}
Original file line number Diff line number Diff line change @@ -43,9 +43,7 @@ export async function registerDefaultSw(
43
43
messaging . swRegistration . update ( ) . catch ( ( ) => {
44
44
/* it is non blocking and we don't care if it failed */
45
45
} ) ;
46
- await waitForRegistrationActive (
47
- messaging . swRegistration
48
- ) ;
46
+ await waitForRegistrationActive ( messaging . swRegistration ) ;
49
47
} catch ( e ) {
50
48
throw ERROR_FACTORY . create ( ErrorCode . FAILED_DEFAULT_REGISTRATION , {
51
49
browserErrorMessage : ( e as Error ) ?. message
You can’t perform that action at this time.
0 commit comments