Skip to content

Commit

Permalink
Merge 32e22ea into b14747c
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen authored May 3, 2019
2 parents b14747c + 32e22ea commit 5df45f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/addons/src/webvr/vr-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import {createEnterVRButton} from './vr-button';

export default class VRDisplay extends Display {
static isSupported() {
return 'getVRDisplays' in navigator && 'VRFrameData' in window;
return (
typeof navigator !== 'undefined' && 'getVRDisplays' in navigator && 'VRFrameData' in window
);
}

constructor(props) {
Expand Down

0 comments on commit 5df45f2

Please sign in to comment.