From 93cba412b0702ec7e197050de5b60b7c883d5c3b Mon Sep 17 00:00:00 2001 From: onezDerv Date: Wed, 2 Oct 2024 04:27:05 -0400 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) {