1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 23:12:28 +02:00

minor code review

This commit is contained in:
gorhill 2016-07-31 18:43:17 -04:00
parent c94d24c2ed
commit 0165d2e066

View File

@ -288,7 +288,9 @@ var domFilterer = {
var styleTag = document.createElement('style');
styleTag.setAttribute('type', 'text/css');
styleTag.textContent = styleText;
document.head.appendChild(styleTag);
if ( document.head ) {
document.head.appendChild(styleTag);
}
this.styleTags.push(styleTag);
}