themes/base: fix error r7144, location.host already includes the port number and is widely supported, remove the location.hostname fallback and port number handling
This commit is contained in:
parent
a0d62ab9bf
commit
d4053ad492
1 changed files with 1 additions and 2 deletions
|
@ -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) == '&' )
|
||||
|
|
Loading…
Reference in a new issue