Merge pull request #20424 from sbajtl:worker-importscript-bugfix

This commit is contained in:
Alexander Alekhin 2021-07-24 15:28:01 +00:00
commit 06dcc5a2c6

View File

@ -95,7 +95,7 @@ def make_umd(opencvjs, cvjs):
root.cv = factory(); root.cv = factory();
} else if (typeof importScripts === 'function') { } else if (typeof importScripts === 'function') {
// Web worker // Web worker
root.cv = factory; root.cv = factory();
} else { } else {
// Other shells, e.g. d8 // Other shells, e.g. d8
root.cv = factory(); root.cv = factory();