Commit b926c952 authored by amandaghassaei's avatar amandaghassaei

small changes

parent 25962e89
......@@ -42,9 +42,11 @@ function initViveInterface(globals){
$status.html("VR device detected.");
var button = WEBVR.getButton( display, globals.threeView.renderer.domElement );
document.body.appendChild(button);
var callback = button.onclick;
button.onclick = function () {
if (display.isPresenting) globals.vrEnabled = false;
else globals.vrEnabled = true;
if (callback) callback();
};
} );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment