未验证 提交 d6d15c13 编写于 作者: U Ulvi YELEN 提交者: GitHub

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

上级 f2f00259
......@@ -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 === "") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册