summaryrefslogtreecommitdiffhomepage
path: root/themes/base/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'themes/base/htdocs')
-rw-r--r--themes/base/htdocs/luci-static/resources/xhr.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/base/htdocs/luci-static/resources/xhr.js b/themes/base/htdocs/luci-static/resources/xhr.js
index a146fa8a18..096a044847 100644
--- a/themes/base/htdocs/luci-static/resources/xhr.js
+++ b/themes/base/htdocs/luci-static/resources/xhr.js
@@ -43,7 +43,7 @@ XHR = function()
var xhr = this._xmlHttp;
var code = this._encode( data );
- url = location.protocol + '//' + location.hostname +
+ url = location.protocol + '//' + (location.host || location.hostname) +
( location.port ? ':' + location.port : '' ) + url;
if( code )