Skip to content

Commit

Permalink
injectCustomCSS() fix, don't error of no body
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Jun 19, 2019
1 parent e854558 commit 1d4723f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webext/src/dom/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ export default class extends utils.mixins(CommonMixin, CommandsMixin) {
_injectCustomCSS() {
var node = document.createElement("style");
node.innerHTML = this.config.browsh.custom_css;
document.body.appendChild(node);
if (document.body) {
document.body.appendChild(node);
}
}
}

0 comments on commit 1d4723f

Please sign in to comment.