aboutsummaryrefslogtreecommitdiffstats
path: root/src/background/run-ocr.ts
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-06-14 02:01:26 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-06-14 02:01:26 +0530
commit44bd0df461e486ef64c67e75b9073344a2a00a07 (patch)
tree000b2c2abb372da320550e10617010d853a4521b /src/background/run-ocr.ts
parentb4169b8a4ec4f5fda7ceab8f197ac73d0743c49b (diff)
downloadbanglar-bhumi-utils-44bd0df461e486ef64c67e75b9073344a2a00a07.tar.gz
banglar-bhumi-utils-44bd0df461e486ef64c67e75b9073344a2a00a07.zip
Fixed confidence being undefined.
The confidence rating wasn't being passed from the background script to the content script.
Diffstat (limited to 'src/background/run-ocr.ts')
-rw-r--r--src/background/run-ocr.ts2
1 files changed, 1 insertions, 1 deletions
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" });
}