Skip to content

Commit a458762

Browse files
committed
need to await get body
1 parent b3118ed commit a458762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ messenger.messages.onNewMailReceived.addListener(async (folder, messages) => {
4545
/*
4646
Get the text content of the email, stripping out HTML and CSS
4747
*/
48-
const content = getBody(message).substring(0, MAX_CONTENT_LENGTH)
48+
const content = (await getBody(message)).substring(0, MAX_CONTENT_LENGTH)
4949

5050
/*
5151
Call Ollama to generate a summary of the email. The service may be (re)starting,

0 commit comments

Comments
 (0)