mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Testing van be done at https://snappymail.eu/demo/
This commit is contained in:
parent
0ec37b7e90
commit
542d9c91e9
10 changed files with 215 additions and 270 deletions
15
dev/serviceworker.js
Normal file
15
dev/serviceworker.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
self.addEventListener('message', event => self.client = event.source);
|
||||
|
||||
const fn = event => {
|
||||
self.client.postMessage(
|
||||
JSON.stringify({
|
||||
data: event.notification.data,
|
||||
action: event.type
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
self.onnotificationclose = fn;
|
||||
self.onnotificationclick = fn;
|
||||
Loading…
Add table
Add a link
Reference in a new issue