Skip to content

Commit

Permalink
Detect both deprecated and 1.0 WebVR API support (#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeblx authored and ngokevin committed Apr 14, 2016
1 parent 3ca3a20 commit d48cbaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ require('./systems/index'); // Register standard systems.
var ANode = require('./core/a-node');
var AEntity = require('./core/a-entity'); // Depends on ANode and core components.

// Webvr polyfill configuration.
window.hasNonPolyfillWebVRSupport = !!navigator.getVRDevices;
// WebVR polyfill configuration.
window.hasNonPolyfillWebVRSupport = !!navigator.getVRDevices || !!navigator.getVRDisplays;
window.WebVRConfig = window.WebVRConfig || {
TOUCH_PANNER_DISABLED: true,
MOUSE_KEYBOARD_CONTROLS_DISABLED: true
Expand Down

0 comments on commit d48cbaf

Please sign in to comment.