Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dispatch events to service worker object and refactor html tests
- Loading branch information
1 parent
2aa257f
commit 1b29dfb
Showing
11 changed files
with
54 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function status_from_dashboard() { | ||
console.log("Dashboard Service worker is active"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
console.log("root service worker: active"); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
console.log("profile service worker: active"); | ||
|
||
self.addEventListener('activate', function(e) { | ||
console.log("profile service worker active"); | ||
}); | ||
|
||
self.addEventListener('fetch', function(e) { | ||
console.log("A fetch event detected by /profile service worker"); | ||
}); |