Bugfix on import script with web worker.

This commit is contained in:
Saša Bajtl 2021-07-18 10:12:39 +02:00
parent 8334ee18e6
commit 2062a7ca8f

View File

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