Skip to content

Commit

Permalink
Expose build version on WebVRPolyfill.version, for #250
Browse files Browse the repository at this point in the history
  • Loading branch information
jsantell committed Jun 1, 2017
1 parent c80e494 commit 1eecafa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/webvr-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var HMDVRDevice = require('./base.js').HMDVRDevice;
var PositionSensorVRDevice = require('./base.js').PositionSensorVRDevice;
var VRDisplayHMDDevice = require('./display-wrappers.js').VRDisplayHMDDevice;
var VRDisplayPositionSensorDevice = require('./display-wrappers.js').VRDisplayPositionSensorDevice;
var version = require('../package.json').version;

function WebVRPolyfill() {
this.displays = [];
Expand Down Expand Up @@ -268,4 +269,6 @@ function InstallWebVRSpecShim() {
}
};

WebVRPolyfill.version = version;

module.exports.WebVRPolyfill = WebVRPolyfill;

0 comments on commit 1eecafa

Please sign in to comment.