summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Buckley-Houston <tom@tombh.co.uk>2019-06-19 13:29:09 +0300
committerThomas Buckley-Houston <tom@tombh.co.uk>2019-06-19 13:29:09 +0300
commit1d4723f3b09a99f2dd7580f23a336a33164a34db (patch)
tree9295458e3a0ed408c726d7fe7cb865253f85d27e
parente85455880a3688bc33ef756550f9cf2755df4c9b (diff)
injectCustomCSS() fix, don't error of no bodyv1.6.2
-rw-r--r--webext/src/dom/manager.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/webext/src/dom/manager.js b/webext/src/dom/manager.js
index 76d5afe..0855b48 100644
--- a/webext/src/dom/manager.js
+++ b/webext/src/dom/manager.js
@@ -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);
+ }
}
}