diff --git a/index.html b/index.html index 7b60f3f..88e8574 100644 --- a/index.html +++ b/index.html @@ -217,7 +217,7 @@ const emoteEl = document.getElementById("emote"); const messageEl = document.getElementById("message"); const POLL_INTERVAL = 2000; - const VERSION = "v1.3.3"; + const VERSION = "v1.4.0"; // Sound system let audioCtx = null; @@ -325,7 +325,11 @@ function handleStateChange(newState, newEmote, customSound) { // Handle custom sound from notification - if (customSound && customSound !== "none" && customSound !== lastCustomSound) { + if ( + customSound && + customSound !== "none" && + customSound !== lastCustomSound + ) { playSoundByName(customSound); lastCustomSound = customSound; } else if (!customSound) {