Remove port parameter which is included in host

Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
Christopher Ng 2022-09-21 19:11:38 +00:00
parent 09b7776720
commit 1f786f6bcc

View file

@ -2811,7 +2811,7 @@
var scheme = 'nc://';
var command = 'open';
var uid = OC.getCurrentUser().uid;
var url = scheme + command + '/' + uid + '@' + window.location.host + (window.location.port ? `:${window.location.port}` : '') + OC.encodePath(path);
var url = scheme + command + '/' + uid + '@' + window.location.host + OC.encodePath(path);
window.location.href = url;
},