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 +1,7 @@
console.log("iframe service worker active");
self.addEventListener('activate', function(e) {
console.log("iframe service worker active");
});
self.addEventListener('fetch', function(e) {
console.log("A fetch event detected by /iframe service worker");
});