mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-28 13:10:40 +01:00
Fix OCR when using S3/CDN for assets (#28551)
This commit is contained in:
parent
3868a63607
commit
3e9238de47
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ class FocalPointModal extends ImmutablePureComponent {
|
||||||
const worker = createWorker({
|
const worker = createWorker({
|
||||||
workerPath: tesseractWorkerPath,
|
workerPath: tesseractWorkerPath,
|
||||||
corePath: tesseractCorePath,
|
corePath: tesseractCorePath,
|
||||||
langPath: `${assetHost}/ocr/lang-data/`,
|
langPath: `${assetHost}/ocr/lang-data`,
|
||||||
logger: ({ status, progress }) => {
|
logger: ({ status, progress }) => {
|
||||||
if (status === 'recognizing text') {
|
if (status === 'recognizing text') {
|
||||||
this.setState({ ocrStatus: 'detecting', progress });
|
this.setState({ ocrStatus: 'detecting', progress });
|
||||||
|
|
Loading…
Reference in a new issue