Просмотр исходного кода

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

samirah 7 лет назад
Родитель
Сommit
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;
 
 

粤ICP备19079148号