aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/anki-controller.js
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-11-12 02:16:11 +0000
committerGitHub <noreply@github.com>2023-11-12 02:16:11 +0000
commitd06029ea8c4244f40f9ddfeec5154f9ef2a4c053 (patch)
tree93f3e15603ec38faef01070475904c08d2e9280b /ext/js/pages/settings/anki-controller.js
parentf263e994c6eca2438eaff79cb22f1b48fe14b7b2 (diff)
parent784dcd93b02443bc253e3af43ad0586a1add39c5 (diff)
Merge pull request #314 from starxeras/replace-yomichan
Replace all instances of yomichan
Diffstat (limited to 'ext/js/pages/settings/anki-controller.js')
-rw-r--r--ext/js/pages/settings/anki-controller.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/js/pages/settings/anki-controller.js b/ext/js/pages/settings/anki-controller.js
index 0ad047aa..8164b8f6 100644
--- a/ext/js/pages/settings/anki-controller.js
+++ b/ext/js/pages/settings/anki-controller.js
@@ -21,7 +21,7 @@ import {EventListenerCollection, log} from '../../core.js';
import {AnkiUtil} from '../../data/anki-util.js';
import {SelectorObserver} from '../../dom/selector-observer.js';
import {ObjectPropertyAccessor} from '../../general/object-property-accessor.js';
-import {yomichan} from '../../yomichan.js';
+import {yomitan} from '../../yomitan.js';
export class AnkiController {
constructor(settingsController) {
@@ -394,7 +394,7 @@ export class AnkiController {
let noteId = null;
for (const query of queries) {
- const notes = await yomichan.api.findAnkiNotes(query);
+ const notes = await yomitan.api.findAnkiNotes(query);
if (notes.length > 0) {
noteId = notes[0];
break;
@@ -405,7 +405,7 @@ export class AnkiController {
throw new Error('Could not find a note to test with');
}
- await yomichan.api.noteView(noteId, mode, false);
+ await yomitan.api.noteView(noteId, mode, false);
}
_setAnkiNoteViewerStatus(visible, error) {