Browse Source

Ran linter

pull/629/head
Your Name 3 years ago
parent
commit
58d28944d3
  1. 2
      src/worker-script/index.js

2
src/worker-script/index.js

@ -102,7 +102,7 @@ const loadLanguage = async ({ @@ -102,7 +102,7 @@ const loadLanguage = async ({
const fetchUrl = `${path}/${lang}.traineddata${gzip ? '.gz' : ''}`;
const resp = await (isWebWorker ? fetch : adapter.fetch)(fetchUrl);
if (!resp.ok) {
throw Error(`Network error while fetching ${fetchUrl}. Response code: ${resp.status}`)
throw Error(`Network error while fetching ${fetchUrl}. Response code: ${resp.status}`);
}
data = await resp.arrayBuffer();
} else {

Loading…
Cancel
Save