1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-28 11:00:38 +12:00

document.head isn't always available in Safari

This commit is contained in:
Deathamns 2014-10-31 19:29:44 +01:00 committed by gorhill
parent 4df265b15f
commit 192053ae99

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