From dd50cc78cc1576cbfd29b0d967339c319beb07f9 Mon Sep 17 00:00:00 2001 From: Steven Vandevelde Date: Thu, 3 Sep 2026 11:18:50 +0200 Subject: [PATCH] fix: tests --- src/components/artwork/audio-metadata/worker.js | 4 ++-- src/facets/themes/catalogue-one/facet/index.inline.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/artwork/audio-metadata/worker.js b/src/components/artwork/audio-metadata/worker.js index 36e0105c..fea021b1 100644 --- a/src/components/artwork/audio-metadata/worker.js +++ b/src/components/artwork/audio-metadata/worker.js @@ -4,8 +4,8 @@ import { ostiary, rpc, workerProxy } from "~/common/worker.js"; /** * @import {ActionsWithTunnel, ProxiedActions} from "~/common/worker.d.ts" - * @import {InputActions} from "~/components/input/types.d.ts" - * @import {Actions} from "~/components/artwork/types.d.ts" + * @import {InputActions} from "@specs/components/input/types.d.ts" + * @import {Actions} from "@specs/components/artwork/types.d.ts" */ //////////////////////////////////////////// diff --git a/src/facets/themes/catalogue-one/facet/index.inline.js b/src/facets/themes/catalogue-one/facet/index.inline.js index 19d6682e..a40bcdb7 100644 --- a/src/facets/themes/catalogue-one/facet/index.inline.js +++ b/src/facets/themes/catalogue-one/facet/index.inline.js @@ -314,7 +314,7 @@ async function doFetchArt(key, track) { const bytes = await artwork.get(track); if (bytes) { const mime = detectMime(bytes); - const url = URL.createObjectURL(new Blob([bytes], { type: mime })); + const url = URL.createObjectURL(new Blob([/** @type {BlobPart} */ (bytes)], { type: mime })); cacheArt(key, url); } else { cacheArt(key, null); -- 2.51.2