mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-08-01 12:29:07 +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'
|
||
|
}
|
||
|
}));
|
||
|
});
|