diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2019-12-08 11:10:19 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2019-12-08 11:10:19 +0200 |
commit | b8fddd96c83e44d6d5aa8f5eeaa233674f59c4b7 (patch) | |
tree | 4f1cde73e2f215bd819791527c28df447f0fb512 /ext | |
parent | b862035fbc20449786a14f3f0b82828b8eb73c5c (diff) |
fix popup preview
resolves #302
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/settings/popup-preview-frame.js | 2 | ||||
-rw-r--r-- | ext/bg/settings-popup-preview.html | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ext/bg/js/settings/popup-preview-frame.js b/ext/bg/js/settings/popup-preview-frame.js index 49409968..73326322 100644 --- a/ext/bg/js/settings/popup-preview-frame.js +++ b/ext/bg/js/settings/popup-preview-frame.js @@ -160,7 +160,7 @@ class SettingsPopupPreview { const source = new TextSourceRange(range, range.toString(), null); try { - await this.frontend.searchSource(source, 'script'); + await this.frontend.onSearchSource(source, 'script'); } finally { source.cleanup(); } diff --git a/ext/bg/settings-popup-preview.html b/ext/bg/settings-popup-preview.html index 339467d4..b79363c7 100644 --- a/ext/bg/settings-popup-preview.html +++ b/ext/bg/settings-popup-preview.html @@ -119,6 +119,7 @@ <script src="/mixed/js/core.js"></script> <script src="/mixed/js/dom.js"></script> + <script src="/mixed/js/text-scanner.js"></script> <script src="/fg/js/api.js"></script> <script src="/fg/js/document.js"></script> |