Fix OCR when using S3/CDN for assets (#28551)

This commit is contained in:
Michael Stanclift 2024-01-02 03:09:54 -06:00 committed by Claire
parent 3868a63607
commit 3e9238de47

View file

@ -218,7 +218,7 @@ class FocalPointModal extends ImmutablePureComponent {
const worker = createWorker({
workerPath: tesseractWorkerPath,
corePath: tesseractCorePath,
langPath: `${assetHost}/ocr/lang-data/`,
langPath: `${assetHost}/ocr/lang-data`,
logger: ({ status, progress }) => {
if (status === 'recognizing text') {
this.setState({ ocrStatus: 'detecting', progress });