mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-07-11 06:29:02 +00:00
14 lines
309 B
JavaScript
14 lines
309 B
JavaScript
self.addEventListener('fetch', function (event) {
|
|
if (!event.request.url.endsWith('sw_clients/does_not_exist.html')) {
|
|
return;
|
|
}
|
|
|
|
event.respondWith(new Response('', {
|
|
status: 301,
|
|
statusText: 'Moved Permanently',
|
|
headers: {
|
|
'Location': 'refresher_compressed.html'
|
|
}
|
|
}));
|
|
});
|