Update to new ServiceWorker spec link

This commit is contained in:
CYBAI 2018-11-04 17:26:44 +08:00
parent 4ec7dedce1
commit 0a82cea555

View file

@ -402,7 +402,7 @@ impl ServiceWorkerGlobalScope {
Response(mediator) => {
// TODO XXXcreativcoder This will eventually use a FetchEvent interface to fire event
// when we have the Request and Response dom api's implemented
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker_1/index.html#fetch-event-section
// https://w3c.github.io/ServiceWorker/#fetchevent-interface
self.upcast::<EventTarget>().fire_event(atom!("fetch"));
let _ = mediator.response_chan.send(None);
},