Bugfix on import script with web worker.

pull/20424/head
Saša Bajtl 4 years ago
parent 8334ee18e6
commit 2062a7ca8f
  1. 2
      modules/js/src/make_umd.py

@ -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();

Loading…
Cancel
Save