1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-11 21:29:08 +09:00
This commit is contained in:
syuilo 2018-04-11 17:40:04 +09:00
commit 72d5a2f9b9

View File

@ -43,8 +43,6 @@ self.addEventListener('fetch', ev => {
// プッシュ通知を受け取ったとき
self.addEventListener('push', ev => {
console.log('pushed');
// クライアント取得
ev.waitUntil(self.clients.matchAll({
includeUncontrolled: true
@ -54,8 +52,6 @@ self.addEventListener('push', ev => {
const { type, body } = ev.data.json();
console.log(type, body);
const n = composeNotification(type, body);
return self.registration.showNotification(n.title, {
body: n.body,