diff --git a/src/components/hack.js b/src/components/hack.js new file mode 100644 index 0000000..7cc901c --- /dev/null +++ b/src/components/hack.js @@ -0,0 +1,10 @@ +AFRAME.registerComponent('hack', { + play: function () { + setTimeout(() => { + this.el.sceneEl.exitVR(); + setTimeout(() => { + this.el.sceneEl.enterVR(); + }, 100); + }, 250); + } +}); diff --git a/src/index.html b/src/index.html index 6f006a7..ed791f2 100644 --- a/src/index.html +++ b/src/index.html @@ -42,6 +42,7 @@ debug-controller debug-song-time debug-state + hack gpu-preloader {% if DEBUG_INSPECTOR %} inspector="url: http://localhost:3333/dist/aframe-inspector.js"