瀏覽代碼

Handle getVRDisplays rejection for the case where the API is present, but WebVR is not supported

Olga Milovanova 8 年之前
父節點
當前提交
7985839388
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      examples/js/vr/WebVR.js

+ 4 - 0
examples/js/vr/WebVR.js

@@ -32,6 +32,10 @@ var WEBVR = {
 
 					}
 
+				}, function () {
+
+					reject( 'Your browser does not support WebVR. See <a href="https://webvr.info">webvr.info</a> for assistance.' );
+				
 				} );
 
 			} else {