And bumped Version
This commit is contained in:
@@ -217,7 +217,7 @@
|
|||||||
const emoteEl = document.getElementById("emote");
|
const emoteEl = document.getElementById("emote");
|
||||||
const messageEl = document.getElementById("message");
|
const messageEl = document.getElementById("message");
|
||||||
const POLL_INTERVAL = 2000;
|
const POLL_INTERVAL = 2000;
|
||||||
const VERSION = "v1.3.3";
|
const VERSION = "v1.4.0";
|
||||||
|
|
||||||
// Sound system
|
// Sound system
|
||||||
let audioCtx = null;
|
let audioCtx = null;
|
||||||
@@ -325,7 +325,11 @@
|
|||||||
|
|
||||||
function handleStateChange(newState, newEmote, customSound) {
|
function handleStateChange(newState, newEmote, customSound) {
|
||||||
// Handle custom sound from notification
|
// Handle custom sound from notification
|
||||||
if (customSound && customSound !== "none" && customSound !== lastCustomSound) {
|
if (
|
||||||
|
customSound &&
|
||||||
|
customSound !== "none" &&
|
||||||
|
customSound !== lastCustomSound
|
||||||
|
) {
|
||||||
playSoundByName(customSound);
|
playSoundByName(customSound);
|
||||||
lastCustomSound = customSound;
|
lastCustomSound = customSound;
|
||||||
} else if (!customSound) {
|
} else if (!customSound) {
|
||||||
|
|||||||
Reference in New Issue
Block a user