summaryrefslogtreecommitdiff
path: root/packages/frontend/src/workers/draw-blurhash.ts
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-11-07 20:20:13 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-11-07 20:20:13 +0900
commitef1cdca6f94ee824f6f8daea1f234dec808c7525 (patch)
treee55e5d58ef4428940ea6058201a12c564d5817a9 /packages/frontend/src/workers/draw-blurhash.ts
parentFix postMessage type error in Web Worker files by adding triple-slash directi... (diff)
downloadmisskey-ef1cdca6f94ee824f6f8daea1f234dec808c7525.tar.gz
misskey-ef1cdca6f94ee824f6f8daea1f234dec808c7525.tar.bz2
misskey-ef1cdca6f94ee824f6f8daea1f234dec808c7525.zip
refactor(frontend): specify global object
Diffstat (limited to 'packages/frontend/src/workers/draw-blurhash.ts')
-rw-r--r--packages/frontend/src/workers/draw-blurhash.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/workers/draw-blurhash.ts b/packages/frontend/src/workers/draw-blurhash.ts
index 0f97a525a8..77b1618e0e 100644
--- a/packages/frontend/src/workers/draw-blurhash.ts
+++ b/packages/frontend/src/workers/draw-blurhash.ts
@@ -21,5 +21,5 @@ onmessage = (event) => {
render(event.data.hash, canvas);
const bitmap = canvas.transferToImageBitmap();
- postMessage({ id: event.data.id, bitmap }, [bitmap]);
+ self.postMessage({ id: event.data.id, bitmap }, [bitmap]);
};