Skip to content

Commit

Permalink
fix: #758
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Mar 23, 2024
1 parent ac871c8 commit a16cf4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export function buildReaderPopup(
const task = addTranslateTask(
addon.data.translate.selectedText,
reader.itemID,
"text",
"addtonote",
);
if (!task) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface TranslateTask {
/**
* Task type.
*/
type: "text" | "annotation" | "title" | "abstract" | "custom";
type: "text" | "annotation" | "title" | "abstract" | "addtonote" | "custom";
/**
* Raw text for translation.
*/
Expand Down

0 comments on commit a16cf4f

Please sign in to comment.