[Glitch] Fix OCR when using S3/CDN for assets

Port fdec8d7ffb to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
th-new
Michael Stanclift 2024-01-02 03:09:54 -06:00 committed by Claire
parent b3542ac57b
commit 0cd497ba7d
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,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 });