diff --git a/js/src/hooks/use-prefetch-adjacent-media.ts b/js/src/hooks/use-prefetch-adjacent-media.ts index 71c2001..81ff72b 100644 --- a/js/src/hooks/use-prefetch-adjacent-media.ts +++ b/js/src/hooks/use-prefetch-adjacent-media.ts @@ -25,7 +25,6 @@ export function usePrefetchAdjacentMedia( for (const particle of mediaParticles) { const objectId = particle.properties.object_id; - const isAudio = particle.properties.mime_type?.startsWith("audio/"); queryClient .prefetchQuery({ @@ -39,7 +38,7 @@ export function usePrefetchAdjacentMedia( objectId, ]); if (url) { - preload(url, { as: isAudio ? "audio" : "video" }); + preload(url, { as: "fetch", crossOrigin: "anonymous" }); } }); }