mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-05 00:12:06 -07:00
feat: streamline Kiku duplicate grouping and popup flow (#38)
This commit is contained in:
@@ -2809,7 +2809,14 @@ const ensureStatsServerStarted = (): string => {
|
||||
await syncYomitanDefaultAnkiServerCore(ankiUrl, yomitanDeps, yomitanLogger, {
|
||||
forceOverride: true,
|
||||
});
|
||||
return addYomitanNoteViaSearch(word, yomitanDeps, yomitanLogger);
|
||||
const result = await addYomitanNoteViaSearch(word, yomitanDeps, yomitanLogger);
|
||||
if (result.noteId && result.duplicateNoteIds.length > 0) {
|
||||
appState.ankiIntegration?.trackDuplicateNoteIdsForNote(
|
||||
result.noteId,
|
||||
result.duplicateNoteIds,
|
||||
);
|
||||
}
|
||||
return result.noteId;
|
||||
},
|
||||
});
|
||||
appState.statsServer = statsServer;
|
||||
|
||||
Reference in New Issue
Block a user