Skip to content

Commit

Permalink
Merge pull request #35 from anvass/main
Browse files Browse the repository at this point in the history
fix: audio loop
  • Loading branch information
ufocoder authored Nov 15, 2024
2 parents e50916e + 66aaa07 commit 23597f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/managers/SoundManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 23597f2

Please sign in to comment.