https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e9b052e94617ea4883b2a3ad9b2f33ea456efe46 authored by Chris Lilley on 02 May 2018, 16:18:16 UTC
correct link
Tip revision: e9b052e
service-worker.js
self.addEventListener('fetch', e => {
  if (e.request.url.indexOf('/non-existent-worklet-script.js') != -1)
    e.respondWith(fetch('empty-worklet-script.js'));
});
back to top