[Glitch] Fix OCR lang data failing to load

Port f1cf85d5a0 to glitch-soc

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
lolsob-rspec
ThibG 2021-01-09 03:48:50 +01:00 committed by Claire
parent 77a975a964
commit 81bc91bc10
1 changed files with 1 additions and 1 deletions

View File

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