diff --git a/src/js/vapi-client.js b/src/js/vapi-client.js index 151d75e..9be2363 100644 --- a/src/js/vapi-client.js +++ b/src/js/vapi-client.js @@ -317,8 +317,8 @@ if (self.chrome) { "open = function(u) {", "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));", "};" ];