about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/ui/components
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2021-01-09 03:48:50 +0100
committerGitHub <noreply@github.com>2021-01-09 03:48:50 +0100
commit73ddb60c32090c9685f3b74e0bbb4a06b34a7083 (patch)
tree1061804b6ddf901581eb50095dc245fb0879fb85 /app/javascript/mastodon/features/ui/components
parenta1a8aa4a08ee457b62f505cea929a0a319655c83 (diff)
Fix OCR lang data failing to load (#15519)
Fixes #15472

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/mastodon/features/ui/components')
-rw-r--r--app/javascript/mastodon/features/ui/components/focal_point_modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/ui/components/focal_point_modal.js b/app/javascript/mastodon/features/ui/components/focal_point_modal.js
index 578375a7f..ffa783e3b 100644
--- a/app/javascript/mastodon/features/ui/components/focal_point_modal.js
+++ b/app/javascript/mastodon/features/ui/components/focal_point_modal.js
@@ -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 });