瀏覽代碼

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;
 			return button;