mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Apply suggestions from code review
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
parent
065971381d
commit
69fe471374
2 changed files with 7 additions and 7 deletions
|
@ -509,7 +509,7 @@ function createDomainIDPrompt(callback) {
|
|||
confirmButtonText: "Create",
|
||||
closeOnConfirm: false,
|
||||
html: true
|
||||
}, function(inputValue) {
|
||||
}, function (inputValue) {
|
||||
if (inputValue === false) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue