Browse Source

Merge pull request #373 from WebReflection/moz-extension

Enable Firefox extesions too
pull/374/head
jeromewu 5 years ago committed by GitHub
parent
commit
2db7607496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/worker-script/index.js

2
src/worker-script/index.js

@ -89,7 +89,7 @@ const loadLanguage = async ({ @@ -89,7 +89,7 @@ const loadLanguage = async ({
if (typeof _lang === 'string') {
let path = null;
if (isURL(langPath) || langPath.startsWith('chrome-extension://') || langPath.startsWith('file://')) { /** When langPath is an URL */
if (isURL(langPath) || langPath.startsWith('moz-extension://') || langPath.startsWith('chrome-extension://') || langPath.startsWith('file://')) { /** When langPath is an URL */
path = langPath;
}

Loading…
Cancel
Save