Skip to content

Commit

Permalink
Fix lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnguonly committed Mar 3, 2024
1 parent 318af43 commit 0616d91
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/scripts/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,17 @@ chrome.runtime.onMessage.addListener(async (request) => {
metadata: { ...doc.metadata, docId: index }, // add document ID
}),
]);
chrome.runtime.sendMessage({
docNo: index + 1,
docCount: documentsCount,
skipCache: skipCache,
}).catch(() => {
console.log("Sending document embedding message, but popup is closed...");
});;
chrome.runtime
.sendMessage({
docNo: index + 1,
docCount: documentsCount,
skipCache: skipCache,
})
.catch(() => {
console.log(
"Sending document embedding message, but popup is closed...",
);
});
});

// store vector store in vector store map
Expand Down

0 comments on commit 0616d91

Please sign in to comment.