Browse Source

Merge pull request #14425 from SamiraAtMicrosoft/handleRejectionGetVRDisplays

WebVR: Handle rejection of getVRDisplays() Promise
Mr.doob 7 years ago
parent
commit
cc56b583f3
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;
 			return button;