Skip to content

Commit

Permalink
Merge pull request #58 from ljwolford/master
Browse files Browse the repository at this point in the history
fixes cross domain issue regarding IE 10 and below
  • Loading branch information
creighton committed Jan 8, 2016
2 parents 33b06c2 + 3754004 commit df08f17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xapiwrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,8 @@ function isDate(date) {
}

//If it's not cross domain or we're not using IE, use the usual XmlHttpRequest
if (!xDomainRequest || typeof(XDomainRequest) === 'undefined') {
var windowsVersionCheck = window.XDomainRequest && (window.XMLHttpRequest && new XMLHttpRequest().responseType === undefined);
if (!xDomainRequest || windowsVersionCheck === undefined || windowsVersionCheck===false) {
xhr = new XMLHttpRequest();
xhr.open(method, url, callback != null);
for(var headerName in headers){
Expand Down

0 comments on commit df08f17

Please sign in to comment.