aboutsummaryrefslogtreecommitdiff
path: root/static/sw.js
diff options
context:
space:
mode:
authorMantas <11616378+mistermantas@users.noreply.github.com>2018-08-02 18:29:24 +0300
committerGitHub <noreply@github.com>2018-08-02 18:29:24 +0300
commit86373cd7132dfc79fee8931764c1b3b67fe597c7 (patch)
tree4480475d0284065f0e3a1107711d0367d2a216a9 /static/sw.js
parent88a199b6c0576a35bae67a241c20370b629dd7cd (diff)
parent4aa7641385b2ae9e6a820778649728d42bce5607 (diff)
v2.0-rc2 || Merge PR #14
Diffstat (limited to 'static/sw.js')
-rw-r--r--static/sw.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/static/sw.js b/static/sw.js
deleted file mode 100644
index e778677..0000000
--- a/static/sw.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-self.addEventListener('notificationclick', function(e) {
- var notification = e.notification;
- var primaryKey = notification.data.primaryKey;
- var action = e.action;
-
- if (action === 'close') {
- notification.close();
- } else {
- clients.openWindow(permalink);
- notification.close();
- }
-});