mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Dispatch events to service worker object and refactor html tests
This commit is contained in:
parent
2aa257f603
commit
1b29dfb8ab
11 changed files with 55 additions and 21 deletions
|
@ -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");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue