summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/web/app/index.html')
-rw-r--r--pyload/web/app/index.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyload/web/app/index.html b/pyload/web/app/index.html
index 5f2dd4265..42dd005e4 100644
--- a/pyload/web/app/index.html
+++ b/pyload/web/app/index.html
@@ -8,6 +8,7 @@
<meta name="description" content="pyLoad WebUI">
<meta name="viewport" content="width=device-width">
+
<!-- TODO: basepath and templates -->
<link href="styles/font.css" rel="stylesheet" type="text/css"/>
<link href="styles/default/main.css" rel="stylesheet" type="text/css">
@@ -27,8 +28,9 @@
seconds: ['second', 'seconds']
}; // TODO carefully when translating
- window.hostProtocol = 'http://';
- window.hostAddress = 'localhost';
+ // TODO: use configured values
+ window.hostProtocol = window.location.protocol + '//';
+ window.hostAddress = window.location.hostname;
window.hostPort = '8001';
window.pathPrefix = "/";