diff options
author | Your Name <you@example.com> | 2022-08-09 08:49:14 +0300 |
---|---|---|
committer | Your Name <you@example.com> | 2022-08-09 08:49:14 +0300 |
commit | 58d28944d30207d41b21547b5e96ff19d9f47e2d (patch) | |
tree | e05a04b4162556db4dcf625a118573ccdafb9021 | |
parent | a8287a99aaef33485e6e755b1b6f578eaabc5e1c (diff) |
Ran linter
-rw-r--r-- | src/worker-script/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker-script/index.js b/src/worker-script/index.js index c0c0fa0..4d46754 100644 --- a/src/worker-script/index.js +++ b/src/worker-script/index.js @@ -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 { |