X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=themes%2Fbase%2Fhtdocs%2Fluci-static%2Fresources%2Fxhr.js;fp=themes%2Fbase%2Fhtdocs%2Fluci-static%2Fresources%2Fxhr.js;h=096a0448474159ee8501fda583df6b28cb20e824;hp=a146fa8a1862054f22ad6daf91b345794f36d9be;hb=a0d62ab9bf0770649ac06ebfaee87e50d249e9af;hpb=5221623290797f0134f168491893962e80cc59dd diff --git a/themes/base/htdocs/luci-static/resources/xhr.js b/themes/base/htdocs/luci-static/resources/xhr.js index a146fa8a1..096a04484 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 )