summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/index.html
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-15 14:00:42 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-15 14:00:42 +0100
commit8fbde7a43b4f838df0379fdb4acd791713b639b7 (patch)
treebb7e78afc6a34823e078ab64c6965321c6866e85 /pyload/web/app/index.html
parentadded new file states (diff)
downloadpyload-8fbde7a43b4f838df0379fdb4acd791713b639b7.tar.xz
more options to get webUI through proxy working
Diffstat (limited to 'pyload/web/app/index.html')
-rw-r--r--pyload/web/app/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/web/app/index.html b/pyload/web/app/index.html
index 98e1bf233..08366f665 100644
--- a/pyload/web/app/index.html
+++ b/pyload/web/app/index.html
@@ -22,7 +22,7 @@
// Use value set by templateEngine or default val
function configValue(string, defaultValue) {
- if (string.indexOf('{{') > -1)
+ if (string.indexOf('{{') > -1 && string !== 'None' && string !== '')
return defaultValue;
return string;
}
@@ -38,10 +38,10 @@
window.hostProtocol = window.location.protocol + '//';
window.hostAddress = window.location.hostname;
window.hostPort = configValue('{{web}}', '8001');
- // TODO
- window.pathPrefix = '/';
+ window.external = configValue('{{external}}', 'true').toLowerCase();
+ window.pathPrefix = configValue('{{prefix}}', '');
window.wsAddress = configValue('{{ws}}', 'ws://%s:7227');
- window.setup = configValue('{{setup}}', 'false');
+ window.setup = configValue('{{setup}}', 'false').toLowerCase();
require(['config'], function(Config) {
require(['default'], function(App) {