[Glitch] Fix OCR lang data failing to load

Port 73ddb60c32 to glitch-soc

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
signup-info-prompt
ThibG 2021-01-09 03:48:50 +01:00 committed by Claire
parent 33d30632fb
commit 31e68bf3d3
1 changed files with 1 additions and 1 deletions

View File

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