Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed Dec 3, 2024
1 parent 9ba1f05 commit 2a81f96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions packages/messaging/src/api/getToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ export async function getToken(
}

await updateVapidKey(messaging, options?.vapidKey);
await updateSwReg(
messaging,
options?.serviceWorkerRegistration
);
await updateSwReg(messaging, options?.serviceWorkerRegistration);

return getTokenInternal(messaging);
}
4 changes: 1 addition & 3 deletions packages/messaging/src/helpers/registerDefaultSw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ export async function registerDefaultSw(
messaging.swRegistration.update().catch(() => {
/* it is non blocking and we don't care if it failed */
});
await waitForRegistrationActive(
messaging.swRegistration
);
await waitForRegistrationActive(messaging.swRegistration);
} catch (e) {
throw ERROR_FACTORY.create(ErrorCode.FAILED_DEFAULT_REGISTRATION, {
browserErrorMessage: (e as Error)?.message
Expand Down

0 comments on commit 2a81f96

Please # to comment.