From a8cd03cbecf4015483ce3479e589e65ce7eece45 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 29 Nov 2020 12:00:41 -0500 Subject: Fix outer CSS being incorrectly injected (#1075) --- ext/bg/js/settings/popup-preview-frame.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/bg/js/settings') diff --git a/ext/bg/js/settings/popup-preview-frame.js b/ext/bg/js/settings/popup-preview-frame.js index c2c91202..8225ecb8 100644 --- a/ext/bg/js/settings/popup-preview-frame.js +++ b/ext/bg/js/settings/popup-preview-frame.js @@ -105,8 +105,8 @@ class PopupPreviewFrame { return options; } - _onCustomOuterCssChanged({node}) { - if (node === null) { return; } + _onCustomOuterCssChanged({node, inShadow}) { + if (node === null || inShadow) { return; } const node2 = document.querySelector('#popup-outer-css'); if (node2 === null) { return; } -- cgit v1.2.3