1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Merge pull request #23825 from ulvido:4.x

if browser supports wasm but only asm.js path provided use asm.js as fallback
This commit is contained in:
Alexander Smorkalov
2023-06-20 13:35:18 +03:00
committed by GitHub
+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 === "") {