document.head isn't always available in Safari

This commit is contained in:
Deathamns 2014-10-31 19:29:44 +01:00
parent bccf3d68e2
commit 7f57684e2b
1 changed files with 1 additions and 1 deletions

View File

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