diff --git a/src/components/status.jsx b/src/components/status.jsx index 92fc28e7..8201f7d6 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -2659,7 +2659,12 @@ function Card({ card, selfReferential, instance }) { const imageData = ctx.createImageData(w, h); imageData.data.set(blurhashPixels); ctx.putImageData(imageData, 0, 0); - blurhashImage = canvas.toDataURL(); + if (window.OffscreenCanvas) { + const blob = canvas.convertToBlob(); + blurhashImage = URL.createObjectURL(blob); + } else { + blurhashImage = canvas.toDataURL(); + } } const isPost = isCardPost(domain);