Explorar o código

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

samirah %!s(int64=7) %!d(string=hai) anos
pai
achega
b37222e8b6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;