mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 23:26:25 +02:00
Apply suggestions from code review
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
parent
58cfb75d41
commit
6442055600
1 changed files with 6 additions and 2 deletions
|
@ -14,9 +14,13 @@
|
|||
|
||||
(function() { // BEGIN LOCAL_SCOPE
|
||||
var SETTING_TO_CHECK = 'firstRun';
|
||||
var DEFAULT_NAME = '';
|
||||
var DEFAULT_DISPLAY_NAME = '';
|
||||
|
||||
if ((Settings.getValue('firstRun', false) && MyAvatar.displayName === '') || MyAvatar.displayName === '') {
|
||||
if (!Settings.getValue('firstRun', false)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (MyAvatar.displayName === '') {
|
||||
var selectedDisplayName = Window.prompt('Enter a display name.', MyAvatar.displayName);
|
||||
|
||||
if (selectedDisplayName === '') {
|
||||
|
|
Loading…
Reference in a new issue