Pārlūkot izejas kodu

Merge pull request #12180 from olga-microsoft/msft/reject-getvrdisplays

Handle getVRDisplays rejection for the case where the API is present,…
Mr.doob 7 gadi atpakaļ
vecāks
revīzija
b5f81fae4e
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      examples/js/vr/WebVR.js

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

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