Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
5 changes: 3 additions & 2 deletions dist/xhook.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// XHook - v1.4.9 - https://github.com/jpillora/xhook
// Jaime Pillora <dev@jpillora.com> - MIT Copyright 2018
(function(undefined) {
(function(window,undefined) {
var AFTER, BEFORE, COMMON_EVENTS, EventEmitter, FETCH, FIRE, FormData, NativeFetch, NativeFormData, NativeXMLHttp, OFF, ON, READY_STATE, UPLOAD_EVENTS, WINDOW, XHookFetchRequest, XHookFormData, XHookHttpRequest, XMLHTTP, convertHeaders, depricatedProp, document, fakeEvent, mergeObjects, msie, nullify, proxyEvents, slice, useragent, xhook, _base,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

Expand Down Expand Up @@ -373,6 +373,7 @@ XHookHttpRequest = WINDOW[XMLHTTP] = function() {
facade[FIRE]("loadstart", {});
}
if (currentState === 2) {
readHead();
writeHead();
}
if (currentState === 4) {
Expand Down Expand Up @@ -697,4 +698,4 @@ if (typeof define === "function" && define.amd) {
WINDOW.xhook = xhook;
}

}.call(this));
}.call(this,window));
2 changes: 1 addition & 1 deletion dist/xhook.min.js

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

Loading