aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/js/background/backend.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js
index e76f4cfe..098bc3ab 100644
--- a/ext/js/background/backend.js
+++ b/ext/js/background/backend.js
@@ -978,12 +978,14 @@ class Backend {
const options = this._getProfileOptions({current: true});
this._updateBadge();
+ const enabled = options.general.enable;
+
this._anki.server = options.anki.server;
- this._anki.enabled = options.anki.enable;
+ this._anki.enabled = options.anki.enable && enabled;
- this._mecab.setEnabled(options.parsing.enableMecabParser);
+ this._mecab.setEnabled(options.parsing.enableMecabParser && enabled);
- if (options.clipboard.enableBackgroundMonitor) {
+ if (options.clipboard.enableBackgroundMonitor && enabled) {
this._clipboardMonitor.start();
} else {
this._clipboardMonitor.stop();