diff --git a/package.json b/package.json index 22ba5dee..6ab33c86 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "@babel/runtime": "^7.14.5", "babel-polyfill": "^6.26.0", "global": "^4.4.0", - "three": "0.137.5", + "three": "0.129.0", "video.js": "^6 || ^7", "webvr-polyfill": "0.10.12", "webxr-polyfill": "^2.0.3" diff --git a/src/plugin.js b/src/plugin.js index 9298cb33..1408b58d 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -754,13 +754,15 @@ void main() { document.body.appendChild(this.vrButton); this.initImmersiveVR(); this.initXRPolyfill(displays); + } else { + this.initVRPolyfill(displays); } window.navigator.xr.setSession = (session) => { this.currentSession = session; this.renderer.xr.setSession(this.currentSession); }; }); - + } else { this.initVRPolyfill(displays); } }