mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-23 14:35:14 +00:00
Merge branch 'master' of https://github.com/syuilo/misskey
This commit is contained in:
commit
72d5a2f9b9
1 changed files with 0 additions and 4 deletions
|
@ -43,8 +43,6 @@ self.addEventListener('fetch', ev => {
|
||||||
|
|
||||||
// プッシュ通知を受け取ったとき
|
// プッシュ通知を受け取ったとき
|
||||||
self.addEventListener('push', ev => {
|
self.addEventListener('push', ev => {
|
||||||
console.log('pushed');
|
|
||||||
|
|
||||||
// クライアント取得
|
// クライアント取得
|
||||||
ev.waitUntil(self.clients.matchAll({
|
ev.waitUntil(self.clients.matchAll({
|
||||||
includeUncontrolled: true
|
includeUncontrolled: true
|
||||||
|
@ -54,8 +52,6 @@ self.addEventListener('push', ev => {
|
||||||
|
|
||||||
const { type, body } = ev.data.json();
|
const { type, body } = ev.data.json();
|
||||||
|
|
||||||
console.log(type, body);
|
|
||||||
|
|
||||||
const n = composeNotification(type, body);
|
const n = composeNotification(type, body);
|
||||||
return self.registration.showNotification(n.title, {
|
return self.registration.showNotification(n.title, {
|
||||||
body: n.body,
|
body: n.body,
|
||||||
|
|
Loading…
Reference in a new issue