Browse Source

Call XHR.open even if the request will be blocked

Without calling it an error may be thrown if other XHR parameters are set.
pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
abb13424b4
  1. 4
      src/js/vapi-client.js

4
src/js/vapi-client.js

@ -317,8 +317,8 @@ if (self.chrome) {
"open = function(u) {", "open = function(u) {",
"return block(u, 'popup') ? null : wo.apply(this, [].slice.call(arguments));", "return block(u, 'popup') ? null : wo.apply(this, [].slice.call(arguments));",
"};", "};",
"XMLHttpRequest.prototype.open = function(m, u) {",
"return block(u, 'xmlhttprequest') ? null : xo.apply(this, [].slice.call(arguments));",
"XMLHttpRequest.prototype.open = function(m, u, s) {",
"return xo.apply(this, block(u, 'xmlhttprequest') ? ['HEAD', u, s] : [].slice.call(arguments));",
"};" "};"
]; ];

Loading…
Cancel
Save