temp hack for vr display activate issues

This commit is contained in:
Kevin Ngo
2018-12-11 00:23:51 -08:00
parent a3675dce64
commit 88c0a19ab7
2 changed files with 11 additions and 0 deletions

10
src/components/hack.js Normal file
View File

@@ -0,0 +1,10 @@
AFRAME.registerComponent('hack', {
play: function () {
setTimeout(() => {
this.el.sceneEl.exitVR();
setTimeout(() => {
this.el.sceneEl.enterVR();
}, 100);
}, 250);
}
});