From 8940c39c0feb944ad736ae7dae065332b16e6758 Mon Sep 17 00:00:00 2001 From: Rafail6666 Date: Fri, 18 Apr 2025 19:37:05 +0500 Subject: [PATCH] fix win sound playback --- .../app/apps/codebattle/assets/js/widgets/machines/game.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/app/apps/codebattle/assets/js/widgets/machines/game.js b/services/app/apps/codebattle/assets/js/widgets/machines/game.js index abd335c8a..1bc195347 100644 --- a/services/app/apps/codebattle/assets/js/widgets/machines/game.js +++ b/services/app/apps/codebattle/assets/js/widgets/machines/game.js @@ -372,7 +372,9 @@ export const config = { // game actions soundWin: () => { - sound.play('win'); + // sound.play('win'); + // TODO: fixes win sound playback, THIS IS CRUTCH, use other method + setTimeout(() => sound.play('win'), 100); }, soundGiveUp: () => { sound.play('give_up');