Browse Source

Fix OCR lang data failing to load (#15519)

Fixes #15472

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
closed-social-v3
ThibG 3 years ago
committed by GitHub
parent
commit
73ddb60c32
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/features/ui/components/focal_point_modal.js

+ 1
- 1
app/javascript/mastodon/features/ui/components/focal_point_modal.js 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 });

Loading…
Cancel
Save