Merge pull request #2363 from sotux/master-luci-app-aria2

luci-app-aria2: fix http/https protocol when opening aria2 webUI
This commit is contained in:
Jo-Philipp Wich 2018-12-10 13:49:27 +01:00 committed by GitHub
commit 08cee189ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ function openWebUI(path) {
var pathName = window.document.location.pathname;
var pos = curWwwPath.indexOf(pathName);
var localhostPath = curWwwPath.substring(0, pos);
var url = "http:" + localhostPath.substring(window.location.protocol.length) + "/" + path;
var url = localhostPath + "/" + path;
window.open(url)
};
//]]>