Skip to content

Commit

Permalink
Updated import
Browse files Browse the repository at this point in the history
  • Loading branch information
Balearica committed Aug 20, 2024
1 parent 68c9e0e commit d4abb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/worker/generalWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { optimizeFont } from './optimizeFontModule.js';
// import Tesseract from "../../tess/tesseract.esm.min.js";
const browserMode = typeof process === 'undefined';

const Tesseract = browserMode ? (await import('../../tess/tesseract.esm.min.js')).default : await import('tesseract.js/src/index.js');
const Tesseract = browserMode ? (await import('../../tess/tesseract.esm.min.js')).default : await import('@scribe.js/tesseract.js');

const defaultConfigs = {
// TODO: Add back support for multiple PSM modes.
Expand Down

0 comments on commit d4abb12

Please sign in to comment.