Merge pull request #2 from gsemaj/main

Add default values for server description & IP
This commit is contained in:
CakeLancelot 2020-12-23 10:53:54 -06:00 committed by GitHub
commit 1d70e9e3f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,8 @@ function addServer() {
var server = {}; var server = {};
server['uuid'] = uuidv4(); server['uuid'] = uuidv4();
server['description'] = $("#addserver-descinput").val(); server['description'] = $("#addserver-descinput").val().length == 0 ? "My OpenFusion Server" : $("#addserver-descinput").val();
server['ip'] = $("#addserver-ipinput").val(); server['ip'] = $("#addserver-ipinput").val().length == 0 ? "127.0.0.1:23000" : $("#addserver-ipinput").val();
server['version'] = $("#addserver-versionselect option:selected").text(); server['version'] = $("#addserver-versionselect option:selected").text();
//server['endpoint'] = //server['endpoint'] =