Skip to content

Commit

Permalink
Added mozSystem parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tehsis committed Mar 13, 2015
1 parent b4171a0 commit 4732b1b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -163,6 +163,7 @@ var r = reqwest({
* `error` A function called when the request fails.
* `complete` A function called whether the request is a success or failure. Always called when complete.
* `jsonpCallback` Specify the callback function name for a `JSONP` request. This value will be used instead of the random (but recommended) name automatically generated by reqwest.
* `mozSystem` If true, the same origin policy will not be enforced on the request. (Mozilla only. Required for FirefoxOS privileged apps)
*


Expand Down
2 changes: 1 addition & 1 deletion reqwest.js
Expand Up @@ -58,7 +58,7 @@
throw new Error('Browser does not support cross-origin requests')
}
} else if (win[xmlHttpRequest]) {
return new XMLHttpRequest()
return new XMLHttpRequest({mozSystem: o['mozSystem']})
} else {
return new ActiveXObject('Microsoft.XMLHTTP')
}
Expand Down
2 changes: 1 addition & 1 deletion reqwest.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/reqwest.js
Expand Up @@ -52,7 +52,7 @@
throw new Error('Browser does not support cross-origin requests')
}
} else if (win[xmlHttpRequest]) {
return new XMLHttpRequest()
return new XMLHttpRequest({mozSystem: o['mozSystem']})
} else {
return new ActiveXObject('Microsoft.XMLHTTP')
}
Expand Down

0 comments on commit 4732b1b

Please sign in to comment.