Skip to content

Commit fa5b267

Browse files
committed
Fix lint error
1 parent 15b7983 commit fa5b267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/worker-script/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const loadLanguage = async ({
134134
res.progress({ workerId, status: 'loaded language traineddata', progress: 1 });
135135
res.resolve(langs);
136136
} catch (err) {
137-
if (isBrowser && err instanceof DOMException) {
137+
if (isWebWorker && err instanceof DOMException) {
138138
/*
139139
* For some reason google chrome throw DOMException in loadLang,
140140
* while other browser is OK, for now we ignore this exception

0 commit comments

Comments
 (0)