summaryrefslogtreecommitdiff
path: root/ext/fg/js/frontend.js
diff options
context:
space:
mode:
authorAlex Yatskov <FooSoft@users.noreply.github.com>2019-09-02 08:30:19 -0700
committerGitHub <noreply@github.com>2019-09-02 08:30:19 -0700
commit037363e3a70675a580431d2ee891e3d88fae511c (patch)
treed42dab6f73fdcc52b9192a29cc1e1219608ca035 /ext/fg/js/frontend.js
parenteee89fa1853b80d563bc9ef5ba05d9a9e8ee2d0d (diff)
parente3d7ec8db7a86d475fba00d48f9cbe150feb36ff (diff)
Merge pull request #197 from toasted-nutbread/imposter-improvements
Imposter element improvements
Diffstat (limited to 'ext/fg/js/frontend.js')
-rw-r--r--ext/fg/js/frontend.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index 3c5f2ac8..ebff768e 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -307,10 +307,11 @@ class Frontend {
this.onError(e);
}
} finally {
+ if (textSource !== null) {
+ textSource.cleanup();
+ }
if (hideResults && this.options.scanning.autoHideResults) {
this.searchClear();
- } else {
- docImposterDestroy();
}
this.pendingLookup = false;
@@ -371,7 +372,6 @@ class Frontend {
}
searchClear() {
- docImposterDestroy();
this.popup.hide();
this.popup.clearAutoPlayTimer();