fixed dumb check that for some reason worked on firefox

This commit is contained in:
Pagwin 2025-01-03 22:30:02 -05:00
parent d7ada64a18
commit f9df398c65
No known key found for this signature in database
GPG key ID: 81137023740CA260

View file

@ -30,7 +30,7 @@ async function fetchResponse(event) {
self.addEventListener('fetch', (event) => {
console.log("Fetch:", event.request.url);
if (!event.request.url.endsWith(".html") && event.request.url.indexOf(".") !== -1) {
if (!event.request.url.endsWith(".html") && event.request.url.match("pagwin.xyz/.+\\..+") !== null) {
console.log("blocked");
return;
}