document.head isn't always available in Safari

pull/2/head
Deathamns 10 years ago committed by gorhill
parent 4df265b15f
commit 192053ae99

@ -306,7 +306,7 @@ if (window.chrome) {
"return block(u, 'xmlhttprequest') ? null : xo.apply(this, [].slice.call(arguments));", "return block(u, 'xmlhttprequest') ? null : xo.apply(this, [].slice.call(arguments));",
"};", "};",
"})();"].join(''); "})();"].join('');
document.head.removeChild(document.head.appendChild(tmpJS)); document.documentElement.removeChild(document.documentElement.appendChild(tmpJS));
}; };
document.addEventListener('DOMSubtreeModified', firstMutation, true); document.addEventListener('DOMSubtreeModified', firstMutation, true);

Loading…
Cancel
Save