1
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yinsx
2026-01-05 16:50:05 +08:00
parent 99da97fcb4
commit ed5669fe93
3 changed files with 53 additions and 5 deletions

View File

@ -20,9 +20,15 @@
env: { hdrPath: '/hdr/my.env', intensity: 1.2, rotationY: 0.3 },
};
console.log(window.faceSDK , window.faceSDK.kernel);
console.log(window.faceSDK, window.faceSDK && window.faceSDK.kernel);
const kernel = window.faceSDK && window.faceSDK.kernel;
if (!kernel) {
console.error('SDK 全局构建未正确加载,请检查脚本地址是否可访问');
}
if (!kernel) return;
kernel.init(config);
@ -46,4 +52,4 @@
</script>
</body>
</html>
</html>