mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-27 14:13:42 +01:00
[Glitch] Fix OCR when using S3/CDN for assets
Port fdec8d7ffb
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
b3542ac57b
commit
0cd497ba7d
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,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