summaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/popup-preview-frame.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-10-20 20:53:18 -0400
committerGitHub <noreply@github.com>2020-10-20 20:53:18 -0400
commit9bda0a9eb43e127fdaa0066fba7e3e73c9f74812 (patch)
treebb76c4263d757ecdd59cb126f8cc31d8ffba93a3 /ext/bg/js/settings/popup-preview-frame.js
parentecbac2c5ea4aecfb4d43d5beb20792f644e334d0 (diff)
Popup preview fixes (#948)
* Select just the text node and not its container * Make background color transparent by default
Diffstat (limited to 'ext/bg/js/settings/popup-preview-frame.js')
-rw-r--r--ext/bg/js/settings/popup-preview-frame.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/settings/popup-preview-frame.js b/ext/bg/js/settings/popup-preview-frame.js
index 7e177453..1a05a48d 100644
--- a/ext/bg/js/settings/popup-preview-frame.js
+++ b/ext/bg/js/settings/popup-preview-frame.js
@@ -224,7 +224,7 @@ class PopupPreviewFrame {
if (textNode === null) { return; }
const range = document.createRange();
- range.selectNode(textNode);
+ range.selectNodeContents(textNode);
const source = new TextSourceRange(range, range.toString(), null, null);
try {