From e2a62b68f3a2fc4414ff27a7908f4ee7e93b6142 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Mon, 13 Jul 2026 19:04:11 +0530 Subject: refactor: some more refactoring and removing unused or depticated code --- src/offscreen/ocr/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/offscreen/ocr/index.js') diff --git a/src/offscreen/ocr/index.js b/src/offscreen/ocr/index.js index aab9da8..9cbd19f 100644 --- a/src/offscreen/ocr/index.js +++ b/src/offscreen/ocr/index.js @@ -1,4 +1,4 @@ -import Tesseract from "./tesseract.esm.min.js"; +import Tesseract from "./static/tesseract.esm.min.js"; let ocrWorker = null; const WORKER_PATH = chrome.runtime.getURL("offscreen/ocr/static/worker.min.js"); @@ -37,7 +37,7 @@ async function performOcrInOffscreen(dataURL) { * - `"OFFSCREEN_OCR_REQUEST"`: runs OCR on the supplied data URL. * - `"OFFSCREEN_TERMINATE_OCR_WORKER"`: terminates the worker to free memory. */ -chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { +chrome.runtime.onMessage.addListener((message, _sender, sendResponse) => { if (message.type === "OFFSCREEN_OCR_REQUEST" && message.dataURL) { performOcrInOffscreen(message.dataURL) .then(({ text, confidence }) => { -- cgit v1.2.3