minor code review

This commit is contained in:
gorhill 2016-07-31 18:43:17 -04:00
parent c94d24c2ed
commit 0165d2e066
1 changed files with 3 additions and 1 deletions

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