fix the photo share_target, and tweak other verbiage
This commit is contained in:
@@ -137,12 +137,10 @@ self.addEventListener("fetch", (event) => {
|
||||
|
||||
// Bypass any regular requests not related to Web Share Target
|
||||
// and also requests that are not exactly to the timesafari.app
|
||||
// (because Chrome will send subdomain requests like image-api.timesafari.app through this service worker).
|
||||
// (note that Chrome will send subdomain requests like image-api.timesafari.app through this service worker).
|
||||
if (
|
||||
event.request.method !== "POST" ||
|
||||
(event.request.url.hostname !== "timesafari.app" &&
|
||||
event.request.url.hostname !== "test.timesafari.app" &&
|
||||
event.request.url.hostname !== "localhost")
|
||||
!event.request.url.endsWith("/share-target")
|
||||
) {
|
||||
event.respondWith(fetch(event.request));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user