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');
|
var styleTag = document.createElement('style');
|
||||||
styleTag.setAttribute('type', 'text/css');
|
styleTag.setAttribute('type', 'text/css');
|
||||||
styleTag.textContent = styleText;
|
styleTag.textContent = styleText;
|
||||||
|
if ( document.head ) {
|
||||||
document.head.appendChild(styleTag);
|
document.head.appendChild(styleTag);
|
||||||
|
}
|
||||||
this.styleTags.push(styleTag);
|
this.styleTags.push(styleTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue