ok
This commit is contained in:
7
public/sw.js
Normal file
7
public/sw.js
Normal file
@@ -0,0 +1,7 @@
|
||||
self.addEventListener('push', event => {
|
||||
const data = event.data.json();
|
||||
self.registration.showNotification(data.title, {
|
||||
body: data.body,
|
||||
icon: '/dermalounge.jpg',
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user