diff --git a/package.json b/package.json index 6e8ab0de..b3df248f 100644 --- a/package.json +++ b/package.json @@ -155,7 +155,8 @@ "MessageChannel", "ImageData", "OffscreenCanvas", - "postMessage" + "postMessage", + "getComputedStyle" ], "ignore": [ "dist", diff --git a/src/routes/_components/NonAutoplayGifv.html b/src/routes/_components/NonAutoplayGifv.html index 722cf716..69571019 100644 --- a/src/routes/_components/NonAutoplayGifv.html +++ b/src/routes/_components/NonAutoplayGifv.html @@ -17,7 +17,7 @@ alt={label || ''} title={label || ''} src={staticSrc} - blurhash={blurhash} + {blurhash} fallback={oneTransparentPixel} {width} {height} diff --git a/src/routes/_components/status/Media.html b/src/routes/_components/status/Media.html index 12a49efd..440c809d 100644 --- a/src/routes/_components/status/Media.html +++ b/src/routes/_components/status/Media.html @@ -1,4 +1,4 @@ -{#if (type === 'video' && !blurhash) || type === 'audio'} +{#if !blurhash && (type === 'video' || type === 'audio')}