aboutsummaryrefslogtreecommitdiffstats
path: root/src/background/run-ocr.ts
diff options
context:
space:
mode:
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" });
}