Skip to content
Snippets Groups Projects
Unverified Commit 4e882414 authored by anatawa12's avatar anatawa12 Committed by GitHub
Browse files

fix: 音声が一切鳴らなくなる可能性がある (#12491)

* chore: 音声が一切鳴らなくなる可能性を軽減

https://github.com/misskey-dev/misskey/pull/12433#discussion_r1405774767

* chore: IIFEではなくPromise.prototype.finallyを使用するように
parent 3b3b908c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment