blob: b905d555986e3ee374ae8ff74a0a9d69de44dbc8 (
plain)
1
2
3
4
5
6
7
8
9
10
|
'use strict';
self.addEventListener('fetch', event => {
if (event.request.url.endsWith('waituntil-forever')) {
event.respondWith(new Promise(() => {
// Use a promise that never resolves to prevent this fetch from
// completing.
}));
}
});
|