fix the photo share_target, and tweak other verbiage

This commit is contained in:
2024-05-19 19:56:25 -06:00
parent 151c8154c4
commit ad39ea05c2
4 changed files with 9 additions and 8 deletions

View File

@@ -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;