Skip to content

Commit 1d4723f

Browse files
committed
injectCustomCSS() fix, don't error of no body
1 parent e854558 commit 1d4723f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webext/src/dom/manager.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ export default class extends utils.mixins(CommonMixin, CommandsMixin) {
256256
_injectCustomCSS() {
257257
var node = document.createElement("style");
258258
node.innerHTML = this.config.browsh.custom_css;
259-
document.body.appendChild(node);
259+
if (document.body) {
260+
document.body.appendChild(node);
261+
}
260262
}
261263
}

0 commit comments

Comments
 (0)