From eaa7291683604895017c67e716f7ee44a1ea853a Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 1 May 2016 21:18:28 -0700 Subject: Updating options page --- ext/fg/js/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/fg/js') diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js index fdb46acb..8393e58c 100644 --- a/ext/fg/js/client.js +++ b/ext/fg/js/client.js @@ -126,7 +126,7 @@ class Client { showPopup(range, content) { this.popup.showNextTo(range.getRect(), content); - if (this.options.highlightText) { + if (this.options.selectMatchedText) { range.select(); } @@ -136,7 +136,7 @@ class Client { hidePopup() { this.popup.hide(); - if (this.options.highlightText && this.lastRange !== null) { + if (this.options.selectMatchedText && this.lastRange !== null) { this.lastRange.deselect(); } -- cgit v1.2.3