summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/index.html
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-06-13 20:22:23 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-06-13 20:22:23 +0200
commitb790dbd2aeeb9a72766c6fac71bfb147878cba81 (patch)
tree0ef2ba842542744b4fd279a930002a9e0d302304 /pyload/web/app/index.html
parentconverted templates to default mustache syntax (diff)
downloadpyload-b790dbd2aeeb9a72766c6fac71bfb147878cba81.tar.xz
fixed font and remote addresses
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 = "/";