From 1cd7bc305d9d4a19847312ce31ee44630d64a861 Mon Sep 17 00:00:00 2001 From: Jason Ojisan Date: Wed, 28 Aug 2024 18:39:46 +0700 Subject: [PATCH] Allow add Anki cards on search page when Rikaitan is disabled Don't disable Anki when Rikaitan is disabled NjU5YjgzN2IyNGMwNGIwNTA1YzczNWVkMTZkYTViNjNjOTAyYmFiMgo= --- ext/js/background/backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index 9a0e034c3a..e70f64aa2e 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -1299,7 +1299,7 @@ export class Backend { let apiKey = options.anki.apiKey; if (apiKey === '') { apiKey = null; } this._anki.server = options.anki.server; - this._anki.enabled = options.anki.enable && enabled; + this._anki.enabled = options.anki.enable; this._anki.apiKey = apiKey; this._mecab.setEnabled(options.parsing.enableMecabParser && enabled);