diff --git a/src/js/vapi-client.js b/src/js/vapi-client.js index a58ed14..1fc4535 100644 --- a/src/js/vapi-client.js +++ b/src/js/vapi-client.js @@ -306,7 +306,7 @@ if (window.chrome) { "return block(u, 'xmlhttprequest') ? null : xo.apply(this, [].slice.call(arguments));", "};", "})();"].join(''); - document.head.removeChild(document.head.appendChild(tmpJS)); + document.documentElement.removeChild(document.documentElement.appendChild(tmpJS)); }; document.addEventListener('DOMSubtreeModified', firstMutation, true);