From 44bd0df461e486ef64c67e75b9073344a2a00a07 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sat, 14 Jun 2025 02:01:26 +0530 Subject: Fixed confidence being undefined. The confidence rating wasn't being passed from the background script to the content script. --- src/background/run-ocr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/background') diff --git a/src/background/run-ocr.ts b/src/background/run-ocr.ts index 4476f54..7975fc0 100644 --- a/src/background/run-ocr.ts +++ b/src/background/run-ocr.ts @@ -27,7 +27,7 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { }); if (offscreenResponse && offscreenResponse.success) { - sendResponse({ success: true, text: offscreenResponse.text }); + sendResponse(offscreenResponse); } else { sendResponse({ success: false, error: offscreenResponse?.error || "Unknown OCR error" }); } -- cgit v1.2.3