mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 11:22:10 +02:00
Apply suggestions from code review
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
parent
8d8c141dff
commit
e5ab46341f
2 changed files with 2 additions and 2 deletions
|
@ -317,7 +317,7 @@ var handleMessage = function(channel, message, sender) {
|
||||||
if (channel === CHANNEL_AWAY_ENABLE && sender === MyAvatar.sessionUUID) {
|
if (channel === CHANNEL_AWAY_ENABLE && sender === MyAvatar.sessionUUID) {
|
||||||
print("away.js | Got message on Hifi-Away-Enable: ", message);
|
print("away.js | Got message on Hifi-Away-Enable: ", message);
|
||||||
if (message === 'enable') {
|
if (message === 'enable') {
|
||||||
setEnabled(message === 'enable');
|
setEnabled(true);
|
||||||
} else if (message === 'toggle') {
|
} else if (message === 'toggle') {
|
||||||
toggleAway();
|
toggleAway();
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// onEscape.js
|
// onEscape.js
|
||||||
//
|
//
|
||||||
// Created by Kalila L. on Feb 3 2021.
|
// Created by Kalila L. on Feb 3 2021.
|
||||||
// Copyright 2020 Vircadia contributors.
|
// Copyright 2021 Vircadia contributors.
|
||||||
//
|
//
|
||||||
// This script manages actions when the user triggers an "escape" key or action.
|
// This script manages actions when the user triggers an "escape" key or action.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue