mirror of https://github.com/gorhill/uBlock.git
minor code review
This commit is contained in:
parent
c94d24c2ed
commit
0165d2e066
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue