mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Bugfix on import script with web worker.
This commit is contained in:
parent
8334ee18e6
commit
2062a7ca8f
@ -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…
Reference in New Issue
Block a user