aboutsummaryrefslogtreecommitdiff
path: root/static/sw.js
diff options
context:
space:
mode:
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();
- }
-});