This commit is contained in:
linnil1 2018-02-18 15:22:04 +00:00 committed by GitHub
commit 892b885387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -164,7 +164,8 @@ var UI = {
UI.initSetting('resize', 'off');
UI.initSetting('shared', true);
UI.initSetting('view_only', false);
UI.initSetting('path', 'websockify');
UI.initSetting('path', window.location.pathname.split('/').slice(0, -1).join('/') +
'/websockify');
UI.initSetting('repeaterID', '');
UI.initSetting('reconnect', false);
UI.initSetting('reconnect_delay', 5000);
@ -1013,7 +1014,7 @@ var UI = {
if(port) {
url += ':' + port;
}
url += '/' + path;
url += path + document.location.search;
UI.rfb = new RFB(document.getElementById('noVNC_container'), url,
{ shared: UI.getSetting('shared'),