diff --git a/src/webvr-polyfill.js b/src/webvr-polyfill.js index 4e56ecd..69a288f 100644 --- a/src/webvr-polyfill.js +++ b/src/webvr-polyfill.js @@ -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 = []; @@ -268,4 +269,6 @@ function InstallWebVRSpecShim() { } }; +WebVRPolyfill.version = version; + module.exports.WebVRPolyfill = WebVRPolyfill;