mirror of https://github.com/nealey/vail.git
16 lines
281 B
JavaScript
16 lines
281 B
JavaScript
|
// jshint asi:true
|
||
|
|
||
|
console.log("moo")
|
||
|
|
||
|
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))
|
||
|
}
|
||
|
|