blob: 773e38fd21b023b8314f732b6d1893ab6c65a3cd (
plain)
1
2
3
4
5
6
7
8
9
10
|
var num_overridden = 0;
self.addEventListener('fetch', event => {
const url = event.request.url;
if (url.indexOf('query_service_worker_intercepts.html') != -1) {
event.respondWith(new Response(num_overridden));
} else if (url.indexOf('credential-management/support') != -1) {
++num_overridden;
}
});
|