diff --git a/scripts/communityScripts/chat/FloofChat.html b/scripts/communityScripts/chat/FloofChat.html index 9cd6234717..62bb0e625d 100644 --- a/scripts/communityScripts/chat/FloofChat.html +++ b/scripts/communityScripts/chat/FloofChat.html @@ -418,7 +418,7 @@ mutedAudio[getCurrTab()] = muteAudioInput.checked; muteAudioText.classList.add(muteAudioInput.checked ? "red-text" : "white-text"); muteAudioText.classList.remove(!muteAudioInput.checked ? "red-text" : "white-text"); - emitWebEvent({type: "CMD", cmd: "MUTEDAUDIO", muted: mutedAudio}); + emitWebEvent({ type: "CMD", cmd: "MUTEDAUDIO", muted: mutedAudio }); } function main() { diff --git a/scripts/communityScripts/chat/FloofChat.js b/scripts/communityScripts/chat/FloofChat.js index d1a60d0955..941fef2471 100644 --- a/scripts/communityScripts/chat/FloofChat.js +++ b/scripts/communityScripts/chat/FloofChat.js @@ -358,9 +358,9 @@ function playNotificationSound() { var injectorOptions = { localOnly: true, position: MyAvatar.position, - volume: 0.02, + volume: 0.02 }; - var injector = Audio.playSound(notificationSound, injectorOptions); + Audio.playSound(notificationSound, injectorOptions); } } @@ -523,7 +523,7 @@ function time() { function addToLog(msg, dp, colour, tab) { var currentTimestamp = time(); historyLog.push([currentTimestamp, msg, dp, colour, tab]); - chatHistory.emitScriptEvent(JSON.stringify({type: "MSG", data: [[currentTimestamp, msg, dp, colour, tab]]})); + chatHistory.emitScriptEvent(JSON.stringify({ type: "MSG", data: [[currentTimestamp, msg, dp, colour, tab]]})); while (historyLog.length > chatHistoryLimit) { historyLog.shift(); } @@ -635,4 +635,4 @@ function shutdown() { } chatBar.close(); chatHistory.close(); -} \ No newline at end of file +}