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(
4040 }
4141
4242 await updateVapidKey ( messaging , options ?. vapidKey ) ;
43- await updateSwReg (
44- messaging ,
45- options ?. serviceWorkerRegistration
46- ) ;
43+ await updateSwReg ( messaging , options ?. serviceWorkerRegistration ) ;
4744
4845 return getTokenInternal ( messaging ) ;
4946}
Original file line number Diff line number Diff line change @@ -43,9 +43,7 @@ export async function registerDefaultSw(
4343 messaging . swRegistration . update ( ) . catch ( ( ) => {
4444 /* it is non blocking and we don't care if it failed */
4545 } ) ;
46- await waitForRegistrationActive (
47- messaging . swRegistration
48- ) ;
46+ await waitForRegistrationActive ( messaging . swRegistration ) ;
4947 } catch ( e ) {
5048 throw ERROR_FACTORY . create ( ErrorCode . FAILED_DEFAULT_REGISTRATION , {
5149 browserErrorMessage : ( e as Error ) ?. message
You can’t perform that action at this time.
0 commit comments