Browse Source

document.head isn't always available in Safari

pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
192053ae99
  1. 2
      src/js/vapi-client.js

2
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);

Loading…
Cancel
Save