update preview api url in sw

This commit is contained in:
Martti Malmi 2024-01-27 10:26:27 +02:00
parent 82d5b9fb64
commit 470e5b31ce

View File

@ -88,7 +88,7 @@ registerRoute(
);
registerRoute(
({ url }) => url.origin === "https://api.snort.social" && url.pathname.startsWith("/api/v1/preview"),
({ url }) => url.origin === "https://nostr.api.v0l.io" && url.pathname.startsWith("/api/v1/preview"),
new CacheFirst({
cacheName: "preview-cache",
plugins: [