1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Additional changes

This commit is contained in:
Bandic007 2018-09-27 11:54:11 +03:00
parent e44e01cad4
commit 40738d7920
17 changed files with 289 additions and 19 deletions

View file

@ -220,6 +220,7 @@
//var port = WebUtil.getConfigVar('port', window.location.port);
var host = '{{ ws_host }}';
var port = '{{ ws_port }}';
var wspath = '{{ ws_path }}';
// if port == 80 (or 443) then it won't be present and should be
// set manually
@ -263,7 +264,7 @@
url = 'ws';
}
url += '://' + host;
url += '://' + host + wspath;
if(port) {
url += ':' + port;
}