Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added mozSystem parameter #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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