Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromewu committed Dec 21, 2019
1 parent 15b7983 commit fa5b267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker-script/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const loadLanguage = async ({
res.progress({ workerId, status: 'loaded language traineddata', progress: 1 });
res.resolve(langs);
} catch (err) {
if (isBrowser && err instanceof DOMException) {
if (isWebWorker && err instanceof DOMException) {
/*
* For some reason google chrome throw DOMException in loadLang,
* while other browser is OK, for now we ignore this exception
Expand Down

0 comments on commit fa5b267

Please sign in to comment.