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