Skip to content

Instantly share code, notes, and snippets.

@digitarald
Created November 17, 2014 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitarald/3a79acaab5af0744ce91 to your computer and use it in GitHub Desktop.
Save digitarald/3a79acaab5af0744ce91 to your computer and use it in GitHub Desktop.
SystemXHR Everywhere Monkeypatch
// Monkeypatch XHR to always use systemXHR
var oldXMLHttpRequest = XMLHttpRequest;
XMLHttpRequest = function() {
return new oldXMLHttpRequest({
mozSystem: true
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment