bitcoin-vr
bitcoin-vr copied to clipboard
VR Headset Users: Desktop vs Mobile add extra detection for Firefox Nightly and encourage Users to use VR Headset
See todo comments for actions on this ticket
// INSIDE CLIENT.JS } else { // TODO add to detect firefox nightly then mobile = true and add else if statement in reactvrinit.js console.log(navigator.userAgent || navigator.vendor || window.opera); window.mobile = false; } })(navigator.userAgent || navigator.vendor || window.opera);
// INSIDE reactvrinit.js
// remove warning ribbon if viewing on mobile if (document.mobile) { var ribbonWrapper = document.getElementById('ribbon-wrapper'); var ribbon = document.getElementById('ribbon'); ribbonWrapper.removeChild(ribbon); } // TODO Firefox Nightly change #ribbon content to "Browser is compatible to use VR headset. Best experience in VR headset."