From 4e882414b25fe6e9b464b41078089bf295255282 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Wed, 29 Nov 2023 10:29:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9F=B3=E5=A3=B0=E3=81=8C=E4=B8=80?= =?UTF-8?q?=E5=88=87=E9=B3=B4=E3=82=89=E3=81=AA=E3=81=8F=E3=81=AA=E3=82=8B?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E6=80=A7=E3=81=8C=E3=81=82=E3=82=8B=20(#1249?= =?UTF-8?q?1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: 音声が一切鳴らなくなる可能性を軽減 https://github.com/misskey-dev/misskey/pull/12433#discussion_r1405774767 * chore: IIFEではなくPromise.prototype.finallyを使用するように --- packages/frontend/src/scripts/sound.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/sound.ts b/packages/frontend/src/scripts/sound.ts index a4c6967d18..2f7545ef0d 100644 --- a/packages/frontend/src/scripts/sound.ts +++ b/packages/frontend/src/scripts/sound.ts @@ -161,7 +161,7 @@ export function play(operationType: OperationType) { if (sound.type == null || !canPlay) return; canPlay = false; - playFile(sound).then(() => { + playFile(sound).finally(() => { // ごく短時間に音が重複しないように setTimeout(() => { canPlay = true;