]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix OCR lang data failing to load
authorThibG <thib@sitedethib.com>
Sat, 9 Jan 2021 02:48:50 +0000 (03:48 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Mon, 11 Jan 2021 11:00:26 +0000 (12:00 +0100)
Port 73ddb60c32090c9685f3b74e0bbb4a06b34a7083 to glitch-soc

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/features/ui/components/focal_point_modal.js

index 87a7de85188edfb9f69f832fb45f6865c88d9c4b..915e26718b4f4e4605739835af36b572a7cdb2d1 100644 (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 });