Merge 01692ec3a5 into f90c2a6d4b
This commit is contained in:
commit
5edc213fd4
|
|
@ -10,3 +10,4 @@ recordings
|
|||
*.swp
|
||||
*~
|
||||
noVNC-*.tgz
|
||||
.idea/
|
||||
|
|
@ -161,7 +161,9 @@ const UI = {
|
|||
UI.initSetting('resize', 'off');
|
||||
UI.initSetting('shared', true);
|
||||
UI.initSetting('view_only', false);
|
||||
UI.initSetting('path', 'websockify');
|
||||
|
||||
let socketUrl = (window.location.pathname || '/').replace(/\/([^/]+)?$/, '/websockify');
|
||||
UI.initSetting('path', socketUrl || '/websockify');
|
||||
UI.initSetting('repeaterID', '');
|
||||
UI.initSetting('reconnect', false);
|
||||
UI.initSetting('reconnect_delay', 5000);
|
||||
|
|
@ -1019,7 +1021,7 @@ const UI = {
|
|||
if(port) {
|
||||
url += ':' + port;
|
||||
}
|
||||
url += '/' + path;
|
||||
url += path;
|
||||
|
||||
UI.rfb = new RFB(document.getElementById('noVNC_container'), url,
|
||||
{ shared: UI.getSetting('shared'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue