diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-26 18:30:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 18:30:01 -0500 |
commit | 8d292363d4d7363134a66e6d35e549f4634521a1 (patch) | |
tree | 880cad7f3f2e279401af888335d053c6c80b48cf /ext/bg/js/settings | |
parent | d11cd7b28f6837c38a566461dc124799ac6736c9 (diff) |
Update clipboard options organization (#1318)
* Update options organization
* Update general.enableClipboardPopups to clipboard.enableBackgroundMonitor
* Update general.enableClipboardMonitor to clipboard.enableSearchPageMonitor
* Update general.maximumClipboardSearchLength to clipboard.maximumSearchLength
* Update general.autoSearchClipboardContent to clipboard.autoSearchContent
Diffstat (limited to 'ext/bg/js/settings')
-rw-r--r-- | ext/bg/js/settings/clipboard-popups-controller.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/bg/js/settings/clipboard-popups-controller.js b/ext/bg/js/settings/clipboard-popups-controller.js index 810b1bc6..fcff444c 100644 --- a/ext/bg/js/settings/clipboard-popups-controller.js +++ b/ext/bg/js/settings/clipboard-popups-controller.js @@ -18,11 +18,11 @@ class ClipboardPopupsController { constructor(settingsController) { this._settingsController = settingsController; - this._checkbox = document.querySelector('#enable-clipboard-popups'); + this._checkbox = document.querySelector('#clipboard-enable-background-monitor'); } async prepare() { - this._checkbox.addEventListener('change', this._onEnableClipboardPopupsChanged.bind(this), false); + this._checkbox.addEventListener('change', this._onEnableBackgroundMonitorChanged.bind(this), false); this._settingsController.on('optionsChanged', this._onOptionsChanged.bind(this)); const options = await this._settingsController.getOptions(); @@ -32,10 +32,10 @@ class ClipboardPopupsController { // Private _onOptionsChanged({options}) { - this._checkbox.checked = options.general.enableClipboardPopups; + this._checkbox.checked = options.clipboard.enableBackgroundMonitor; } - async _onEnableClipboardPopupsChanged(e) { + async _onEnableBackgroundMonitorChanged(e) { const checkbox = e.currentTarget; let value = checkbox.checked; @@ -46,6 +46,6 @@ class ClipboardPopupsController { checkbox.checked = value; } - await this._settingsController.setProfileSetting('general.enableClipboardPopups', value); + await this._settingsController.setProfileSetting('clipboard.enableBackgroundMonitor', value); } } |