mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-23 03:01:03 +00:00
fix(apis/websocket): build and runtime issues
This commit is contained in:
@@ -55,12 +55,9 @@ export interface WitMessageResponse {
|
||||
|
||||
const TesseractWorkerDirPath = joinPath(import.meta.dir, 'worker')
|
||||
const TesseractWorkerPath = joinPath(TesseractWorkerDirPath, 'index.js')
|
||||
const TesseractCorePath = joinPath(TesseractWorkerDirPath, 'core')
|
||||
|
||||
export const tesseract = await createTesseractWorker(
|
||||
'eng',
|
||||
OEM.DEFAULT,
|
||||
(await pathExists(TesseractWorkerDirPath))
|
||||
? { workerPath: TesseractWorkerPath, corePath: TesseractCorePath }
|
||||
: undefined,
|
||||
(await pathExists(TesseractWorkerDirPath)) ? { workerPath: TesseractWorkerPath } : undefined,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user