Skip to content

Commit

Permalink
Fix audio
Browse files Browse the repository at this point in the history
  • Loading branch information
westim committed Sep 21, 2023
1 parent f6fa101 commit f32ede2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# js13k: Road to Rome
# js13k: Road to Roam

This was my first-ever js13k and also my first-ever game jam!

Expand Down
9 changes: 1 addition & 8 deletions mute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,7 @@ export function createMute(canvas: HTMLCanvasElement, gameState: GameState, audi
audio.pause();
}
else {
let playPromise = audio.play();

if (playPromise !== undefined) {
playPromise.then(_ => {
})
.catch(error => {
});
}
audio.play();
}
},
});
Expand Down

0 comments on commit f32ede2

Please sign in to comment.