update relpath creation

This commit is contained in:
root 2017-09-01 09:54:54 +08:00
parent 214e92f4a9
commit 06e99de5ee
1 changed files with 2 additions and 2 deletions

View File

@ -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);