Merge branch 'sw-nocache' into sw-notification-action

This commit is contained in:
tamaina
2021-02-14 21:20:57 +09:00
5 changed files with 80 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
declare var self: ServiceWorkerGlobalScope;
import { get } from 'idb-keyval';
import { pushNotificationData } from '../../types';
@@ -48,6 +50,8 @@ class SwNotificationRead {
i: account.token,
notificationIds: account.queue
})
}).then(res => {
self.registration.showNotification('notificationread', { body: `${account.queue}, ${res.ok}` });
});
}, 100);
}