summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/app.js
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/scripts/app.js
parentadded new file states (diff)
downloadpyload-8fbde7a43b4f838df0379fdb4acd791713b639b7.tar.xz
more options to get webUI through proxy working
Diffstat (limited to 'pyload/web/app/scripts/app.js')
-rw-r--r--pyload/web/app/scripts/app.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/pyload/web/app/scripts/app.js b/pyload/web/app/scripts/app.js
index af5c50b14..68a20666d 100644
--- a/pyload/web/app/scripts/app.js
+++ b/pyload/web/app/scripts/app.js
@@ -41,8 +41,11 @@ define([
};
App.apiUrl = function(path) {
- var url = window.hostProtocol + window.hostAddress + ':' + window.hostPort + window.pathPrefix + path;
- return url;
+ var prefix = window.pathPrefix;
+ if (window.external !== 'false')
+ prefix = window.hostProtocol + window.hostAddress + ':' + window.hostPort + prefix;
+
+ return prefix + '/' + path;
};
// Add Global Helper functions