diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-11-07 20:20:13 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-11-07 20:20:13 +0900 |
| commit | ef1cdca6f94ee824f6f8daea1f234dec808c7525 (patch) | |
| tree | e55e5d58ef4428940ea6058201a12c564d5817a9 /packages/frontend/src/workers/draw-blurhash.ts | |
| parent | Fix postMessage type error in Web Worker files by adding triple-slash directi... (diff) | |
| download | misskey-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.ts | 2 |
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]); }; |