Skip to content

Commit 2db7607

Browse files
authored
Merge pull request #373 from WebReflection/moz-extension
Enable Firefox extesions too
2 parents 0e8aee6 + 953689f commit 2db7607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)