From c0f74bbc8f6e8dde4f8e254d3f4b260b4209daaa Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Tue, 23 May 2017 22:51:48 -0700 Subject: smarter imposter hiding, version bump --- ext/fg/js/driver.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/fg') diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js index 98c50a02..e11b5014 100644 --- a/ext/fg/js/driver.js +++ b/ext/fg/js/driver.js @@ -160,6 +160,7 @@ window.driver = new class { }).catch(error => { this.handleError(error, textSource); }).then(() => { + docImposterDestroy(); this.pendingLookup = false; }); } @@ -169,7 +170,6 @@ window.driver = new class { return bgTermsFind(textSource.text()).then(({definitions, length}) => { if (definitions.length === 0) { - docImposterDestroy(); return false; } else { textSource.setEndOffset(length); @@ -188,7 +188,6 @@ window.driver = new class { textSource.select(); } - docImposterDestroy(); return true; } }); -- cgit v1.2.3