Skip to content

Commit

Permalink
[Glitch] Fix OCR when using S3/CDN for assets
Browse files Browse the repository at this point in the history
Port fdec8d7 to glitch-soc

Signed-off-by: Claire <[email protected]>
  • Loading branch information
vmstan authored and ClearlyClaire committed Jan 2, 2024
1 parent b3542ac commit 0cd497b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class FocalPointModal extends ImmutablePureComponent {
const worker = createWorker({
workerPath: tesseractWorkerPath,
corePath: tesseractCorePath,
langPath: `${assetHost}/ocr/lang-data/`,
langPath: `${assetHost}/ocr/lang-data`,
logger: ({ status, progress }) => {
if (status === 'recognizing text') {
this.setState({ ocrStatus: 'detecting', progress });
Expand Down

0 comments on commit 0cd497b

Please sign in to comment.