浏览代码

In the vr samples, handle rejection of getVRDisplays for the case when the API is available but WebVR is not supported

samirah 7 年之前
父节点
当前提交
b37222e8b6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/vr/WebVR.js

+ 1 - 1
examples/js/vr/WebVR.js

@@ -191,7 +191,7 @@ var WEBVR = {
 
 					}
 
-				} );
+				} ).catch( showVRNotFound );
 
 			return button;