From 66aaa07b3258ee31388c95999159d06fce226282 Mon Sep 17 00:00:00 2001 From: anvass Date: Fri, 15 Nov 2024 18:46:36 +0300 Subject: [PATCH] fix: audio loop --- src/managers/SoundManager.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/managers/SoundManager.ts b/src/managers/SoundManager.ts index 238b3a6..43db75f 100644 --- a/src/managers/SoundManager.ts +++ b/src/managers/SoundManager.ts @@ -10,6 +10,7 @@ export default class SoundManager { audio.onload = () => resolve(void 0); audio.onabort = () => reject(); audio.onerror = () => reject(); + audio.loop = true; audio.load(); resolve(void 0);