mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 07:09:54 +02:00
Apply suggestions from code review
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
parent
555dd8fe98
commit
c3c6ad47da
2 changed files with 5 additions and 5 deletions
|
@ -418,7 +418,7 @@
|
||||||
mutedAudio[getCurrTab()] = muteAudioInput.checked;
|
mutedAudio[getCurrTab()] = muteAudioInput.checked;
|
||||||
muteAudioText.classList.add(muteAudioInput.checked ? "red-text" : "white-text");
|
muteAudioText.classList.add(muteAudioInput.checked ? "red-text" : "white-text");
|
||||||
muteAudioText.classList.remove(!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() {
|
function main() {
|
||||||
|
|
|
@ -358,9 +358,9 @@ function playNotificationSound() {
|
||||||
var injectorOptions = {
|
var injectorOptions = {
|
||||||
localOnly: true,
|
localOnly: true,
|
||||||
position: MyAvatar.position,
|
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) {
|
function addToLog(msg, dp, colour, tab) {
|
||||||
var currentTimestamp = time();
|
var currentTimestamp = time();
|
||||||
historyLog.push([currentTimestamp, msg, dp, colour, tab]);
|
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) {
|
while (historyLog.length > chatHistoryLimit) {
|
||||||
historyLog.shift();
|
historyLog.shift();
|
||||||
}
|
}
|
||||||
|
@ -635,4 +635,4 @@ function shutdown() {
|
||||||
}
|
}
|
||||||
chatBar.close();
|
chatBar.close();
|
||||||
chatHistory.close();
|
chatHistory.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue