update relpath creation
This commit is contained in:
parent
214e92f4a9
commit
06e99de5ee
|
|
@ -393,8 +393,8 @@ RFB.prototype = {
|
||||||
}
|
}
|
||||||
|
|
||||||
var relpath = location.pathname.split('/');
|
var relpath = location.pathname.split('/');
|
||||||
relpath.splice(1, -1);
|
relpath[relpath.length - 1] = "";
|
||||||
relpath = relpath.join('/') + '/';
|
relpath = relpath.join("/");
|
||||||
uri += '://' + this._rfb_host + ':' + this._rfb_port + relpath + this._rfb_path;
|
uri += '://' + this._rfb_host + ':' + this._rfb_port + relpath + this._rfb_path;
|
||||||
Log.Info("connecting to " + uri);
|
Log.Info("connecting to " + uri);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue