Browse Source

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

samirah 7 years ago
parent
commit
b37222e8b6
1 changed files with 1 additions and 1 deletions
  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;