Skip to content

Commit

Permalink
Allow add Anki cards on search page when Rikaitan is disabled
Browse files Browse the repository at this point in the history
Don't disable Anki when Rikaitan is disabled

<rikaitan.link>NjU5YjgzN2IyNGMwNGIwNTA1YzczNWVkMTZkYTViNjNjOTAyYmFiMgo=</rikaitan.link>
  • Loading branch information
jason-ojisan committed Aug 28, 2024
1 parent 09b2522 commit 1cd7bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/background/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1cd7bc3

Please sign in to comment.