Skip to content

Instantly share code, notes, and snippets.

@d33tah
Created December 27, 2016 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d33tah/756749ed508f26ebd99b08432a4ce2f6 to your computer and use it in GitHub Desktop.
Save d33tah/756749ed508f26ebd99b08432a4ce2f6 to your computer and use it in GitHub Desktop.
self.addEventListener('fetch', function(ev) {
if (ev.request.url.endsWith('.worker')) {
ev.respondWith(new Response('<strong>Ten URL istnieje!</strong>',
{headers:
{"Content-type":"text/html"}
}));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment