Skip to content

Commit b37222e

Browse files
In the vr samples, handle rejection of getVRDisplays for the case when the API is available but WebVR is not supported
1 parent d98677f commit b37222e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/js/vr/WebVR.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ var WEBVR = {
191191

192192
}
193193

194-
} );
194+
} ).catch( showVRNotFound );
195195

196196
return button;
197197

0 commit comments

Comments
 (0)