aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-25 11:18:18 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-26 10:31:17 -0500
commit1f3ff6fad012f28e8c21f9b5573ead6daf405afe (patch)
treed53afa6504ffcb334cb008c8f9f2fb556593e06d /ext/bg
parent54a48a7a9ba33fa07b3acaa775f3d1c384172dbd (diff)
Fix equals function on TextSourceRange when imposter elements are used
Diffstat (limited to 'ext/bg')
-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 54f246e3..37a4b416 100644
--- a/ext/bg/js/settings/popup-preview-frame.js
+++ b/ext/bg/js/settings/popup-preview-frame.js
@@ -148,7 +148,7 @@ class SettingsPopupPreview {
const range = document.createRange();
range.selectNode(textNode);
- const source = new TextSourceRange(range, range.toString(), null);
+ const source = new TextSourceRange(range, range.toString(), null, null);
try {
await this.frontend.onSearchSource(source, 'script');