From b8fddd96c83e44d6d5aa8f5eeaa233674f59c4b7 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Sun, 8 Dec 2019 11:10:19 +0200 Subject: fix popup preview resolves #302 --- ext/bg/js/settings/popup-preview-frame.js | 2 +- ext/bg/settings-popup-preview.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/bg') 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 @@ + -- cgit v1.2.3