We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15b7983 commit fa5b267Copy full SHA for fa5b267
src/worker-script/index.js
@@ -134,7 +134,7 @@ const loadLanguage = async ({
134
res.progress({ workerId, status: 'loaded language traineddata', progress: 1 });
135
res.resolve(langs);
136
} catch (err) {
137
- if (isBrowser && err instanceof DOMException) {
+ if (isWebWorker && err instanceof DOMException) {
138
/*
139
* For some reason google chrome throw DOMException in loadLang,
140
* while other browser is OK, for now we ignore this exception
0 commit comments