From 68f90e71fb4694b790437c4e61e6b888841a3438 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 25 Nov 2024 14:14:20 -0500 Subject: [PATCH] bugfix 3 --- static/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {