Apply suggestions from code review

Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
kasenvr 2020-10-14 02:58:20 -04:00 committed by GitHub
parent 065971381d
commit 69fe471374
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -509,7 +509,7 @@ function createDomainIDPrompt(callback) {
confirmButtonText: "Create",
closeOnConfirm: false,
html: true
}, function(inputValue) {
}, function (inputValue) {
if (inputValue === false) {
return false;
}

View file

@ -173,13 +173,13 @@ function setupWizardSteps() {
}
function promptToCreateDomainID() {
setTimeout(function() {
createDomainIDPrompt(function(label) {
setTimeout(function () {
createDomainIDPrompt(function (label) {
var domainJSON = {
"label": label
}
};
$.post("/api/domains", domainJSON, function(data) {
$.post("/api/domains", domainJSON, function (data) {
// we successfully created a domain ID, set it on that field
var domainID = data.domain.domainId;
console.log("Setting domain ID to ", data, domainID);
@ -188,11 +188,11 @@ function promptToCreateDomainID() {
"metaverse": {
"id": domainID
}
}
};
// POST the form JSON to the domain-server settings.json endpoint so the settings are saved
postSettings(formJSON, goToNextStep);
}, 'json').fail(function() {
}, 'json').fail(function () {
console.log("Failed to create domain ID...");
goToNextStep();
});