Client: add ui.js; create Client object from ui.js

This commit is contained in:
Lexi / Zoe 2019-01-20 05:01:58 +01:00
parent e746a4e8ca
commit 36ba716ad8
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
4 changed files with 16 additions and 8 deletions

10
public_html/js/ui.js Normal file
View file

@ -0,0 +1,10 @@
"use strict";
// Global object for debugging purposes
let client;
// Execute this on start (wrapped in an anonymous function)
(function() {
const wsUri = AppSettings.serverWsUri;
client = new Client(wsUri);
})();