Skip to content

Commit 2a81f96

Browse files
committed
format
1 parent 9ba1f05 commit 2a81f96

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

packages/messaging/src/api/getToken.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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
}

packages/messaging/src/helpers/registerDefaultSw.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)