mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-01 06:12:07 -07:00
feat: streamline Kiku duplicate grouping and popup flow (#38)
This commit is contained in:
@@ -147,7 +147,7 @@ async function main(): Promise<void> {
|
||||
{ forceOverride: true },
|
||||
);
|
||||
|
||||
const noteId = await addYomitanNoteViaSearch(
|
||||
const addResult = await addYomitanNoteViaSearch(
|
||||
word!,
|
||||
{
|
||||
getYomitanExt: () => yomitanExt,
|
||||
@@ -168,6 +168,7 @@ async function main(): Promise<void> {
|
||||
logger,
|
||||
);
|
||||
|
||||
const noteId = addResult.noteId;
|
||||
if (typeof noteId !== 'number') {
|
||||
throw new Error('Yomitan failed to create note.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user