mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 01:13:28 +08:00
if browser supports wasm but only asm.js path provided use asm.js as fallback
This commit is contained in:
parent
f2f00259da
commit
d6d15c136a
@ -73,6 +73,11 @@ async function loadOpenCV(paths, onloadCallback) {
|
||||
console.log("The OpenCV.js for wasm is loaded now");
|
||||
} else if (wasmSupported) {
|
||||
console.log("The browser supports wasm, but the path of OpenCV.js for wasm is empty");
|
||||
|
||||
if (asmPath != "") {
|
||||
OPENCV_URL = asmPath;
|
||||
console.log("The OpenCV.js for Asm.js is loaded as fallback.");
|
||||
}
|
||||
}
|
||||
|
||||
if (OPENCV_URL === "") {
|
||||
|
Loading…
Reference in New Issue
Block a user