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