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:
commit
08cee189ca
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
};
|
||||
//]]>
|
||||
|
|
Loading…
Reference in a new issue