Created
August 16, 2017 18:30
-
-
Save FesterCluck/24455c01fe913c677f2749c94a630eed to your computer and use it in GitHub Desktop.
serviceworker logger
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
self.addEventListener('install', event => { | |
event.waitUntil(self.skipWaiting()); | |
}); | |
self.addEventListener('activate', event => { | |
event.waitUntil(self.clients.claim()); | |
}); | |
self.addEventListener('fetch', event => { | |
console.log(event.request); event.respondWith(fetch(event.request)); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment