summaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r--ext/bg/js/search.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index 0fcbcd13..3b7e8299 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -54,6 +54,7 @@ class DisplaySearch extends Display {
await this.updateOptions();
yomichan.on('optionsUpdated', this._onOptionsUpdated.bind(this));
+ this.on('optionsUpdated', this._onDisplayOptionsUpdated.bind(this));
this.on('contentUpdating', this._onContentUpdating.bind(this));
this.on('modeChange', this._onModeChange.bind(this));
@@ -76,6 +77,7 @@ class DisplaySearch extends Display {
this.hotkeyHandler.on('keydownNonHotkey', this._onKeyDown.bind(this));
this._onModeChange();
+ this._onDisplayOptionsUpdated();
this.initializeState();
@@ -123,6 +125,11 @@ class DisplaySearch extends Display {
}
}
+ _onDisplayOptionsUpdated({options}) {
+ this._clipboardMonitorEnabled = options.general.enableClipboardMonitor;
+ this._updateClipboardMonitorEnabled();
+ }
+
_onContentUpdating({type, content, source}) {
let animate = false;
let valid = false;