Skip to content

Commit 953689f

Browse files
Enable Firefox extesions too
AFAIK this library has no particular reason to ditch Firefox extensions. I have tested with above changes applied and I can finally use OCR within Firefox too. Thanks for considering this change.
1 parent 0e8aee6 commit 953689f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/worker-script/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const loadLanguage = async ({
8989
if (typeof _lang === 'string') {
9090
let path = null;
9191

92-
if (isURL(langPath) || langPath.startsWith('chrome-extension://') || langPath.startsWith('file://')) { /** When langPath is an URL */
92+
if (isURL(langPath) || langPath.startsWith('moz-extension://') || langPath.startsWith('chrome-extension://') || langPath.startsWith('file://')) { /** When langPath is an URL */
9393
path = langPath;
9494
}
9595

0 commit comments

Comments
 (0)