diff --git a/static/js/index.js b/static/js/index.js index 00b11eb..f900d9e 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -159,7 +159,7 @@ class Game extends GameBasic { } x.handleTick = type.prototype.handleTick; - if (x.r != 1 && type == 'Player') { + if (x.r != 1 && type == Player) { let a = new Audio(`assets/${emojis[x.r]}.wav`); a.addEventListener('ended', () => { if (x.you == you) {