Add 0.7.1 build
This commit is contained in:
parent
26548258b3
commit
b84f10b88f
|
@ -112,7 +112,7 @@ declare module Typertext.Http {
|
|||
public GetPort(): number;
|
||||
public GetDomain(): string;
|
||||
public GetProtocol(): HttpProtocol;
|
||||
public CrossOriginCheck(url: HttpUrl): boolean;
|
||||
public SameOriginCheck(url: HttpUrl): boolean;
|
||||
}
|
||||
}
|
||||
declare module Typertext.Json {
|
||||
|
|
|
@ -281,7 +281,7 @@ var Typertext;
|
|||
return this.protocol;
|
||||
};
|
||||
|
||||
HttpUrl.prototype.CrossOriginCheck = function (url) {
|
||||
HttpUrl.prototype.SameOriginCheck = function (url) {
|
||||
return (this.domain === url.GetDomain() && this.port === url.GetPort() && this.protocol === url.GetProtocol());
|
||||
};
|
||||
return HttpUrl;
|
||||
|
@ -402,7 +402,7 @@ var Typertext;
|
|||
var ieLte9 = (ieTestDiv.getElementsByTagName("i").length === 1);
|
||||
var origin = HttpUrl.FromUrl(window.location.href);
|
||||
|
||||
if (!origin.CrossOriginCheck(origin) || !ieLte9) {
|
||||
if (origin.SameOriginCheck(origin) || !ieLte9) {
|
||||
return Typertext.Transport.XHR;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue