Dispatch events to service worker object and refactor html tests

This commit is contained in:
Rahul Sharma 2016-08-01 16:25:08 +05:30
parent 2aa257f603
commit 1b29dfb8ab
11 changed files with 55 additions and 21 deletions

View file

@ -1,2 +1,9 @@
importScripts('dummy.js');
console.log("dashboard service worker: active");
importScripts('dashboard_helper.js');
self.addEventListener('activate', function(e) {
status_from_dashboard();
});
self.addEventListener('fetch', function(e) {
console.log("A fetch event detected by /dashboard service worker");
});