1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

if browser supports wasm but only asm.js path provided use asm.js as fallback

This commit is contained in:
Ulvi YELEN
2023-06-17 09:38:57 +03:00
committed by GitHub
parent f2f00259da
commit d6d15c136a
+5
View File
@@ -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 === "") {