diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-12-10 13:49:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 13:49:27 +0100 |
commit | 08cee189caf8972af9607d1f7754603a1a3788ff (patch) | |
tree | 27e8ea7bee6e58a3a679a23e14b650188dc22ac8 | |
parent | 5d90e704ef33dfb9815afa9e54ba6ce60afd95a6 (diff) | |
parent | 4f11edadff3e7aa8775bb3917a1fed143d58e366 (diff) |
Merge pull request #2363 from sotux/master-luci-app-aria2
luci-app-aria2: fix http/https protocol when opening aria2 webUI
-rw-r--r-- | applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm b/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm index 34b7b3c64..a06d2015f 100644 --- a/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm +++ b/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm @@ -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) }; //]]> |