Created
November 17, 2014 21:30
-
-
Save digitarald/3a79acaab5af0744ce91 to your computer and use it in GitHub Desktop.
SystemXHR Everywhere Monkeypatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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