mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
fixing unit test
This commit is contained in:
parent
26ef4b6800
commit
c006ee22ec
@ -97,7 +97,7 @@ export function useAccountContext() {
|
||||
setPushEnabled: async (flag) => {
|
||||
if (flag) {
|
||||
const status = await Notification.requestPermission();
|
||||
if (status == 'granted') {
|
||||
if (status === 'granted') {
|
||||
const registration = await navigator.serviceWorker.register('push.js');
|
||||
await navigator.serviceWorker.ready;
|
||||
const params = { userVisibleOnly: true, applicationServerKey: urlB64ToUint8Array(state.webPushKey) };
|
||||
|
Loading…
Reference in New Issue
Block a user