puppeteer/test/assets/serviceworkers/fetch/sw.html
2018-03-15 16:58:02 -07:00

6 lines
243 B
HTML

<link rel="stylesheet" href="./style.css">
<script>
window.registrationPromise = navigator.serviceWorker.register('sw.js');
window.activationPromise = new Promise(resolve => navigator.serviceWorker.oncontrollerchange = resolve);
</script>