blob: 17723dcdda2f2fadb9ab0ab4a00b28c24b815234 (
plain)
1
2
3
4
5
6
7
|
self.addEventListener('fetch', (event) => {
url = new URL(event.request.url);
if (url.search == '?PNGIMAGE') {
localUrl = new URL(url.pathname + url.search, self.location);
event.respondWith(fetch(localUrl));
}
});
|