fix popup preview

resolves #302
This commit is contained in:
siikamiika 2019-12-08 11:10:19 +02:00
parent b862035fbc
commit b8fddd96c8
2 changed files with 2 additions and 1 deletions

View File

@ -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();
}

View File

@ -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>