vail/static/sw.js

14 lines
261 B
JavaScript
Raw Normal View History

2020-05-26 20:52:48 -06:00
// jshint asi:true
self.addEventListener("install", install)
function install(event) {
console.log(event)
event.waitUntil(Promise.resolve(true))
}
self.addEventListener("fetch", fetcher)
function fetcher(event) {
event.respondWith(fetch(event.request))
}