Explorar el Código

Fixed WebVR.isAvailable.

Mr.doob hace 9 años
padre
commit
3bc748ea22
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/js/WebVR.js

+ 1 - 1
examples/js/WebVR.js

@@ -7,7 +7,7 @@ var WEBVR = {
 
 	isAvailable: function () {
 
-		return navigator.getVRDisplays;
+		return navigator.getVRDisplays !== undefined;
 
 	},