From 8fbde7a43b4f838df0379fdb4acd791713b639b7 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 15 Dec 2013 14:00:42 +0100 Subject: more options to get webUI through proxy working --- pyload/web/app/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pyload/web/app/index.html') 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) { -- cgit v1.2.3