Last active
March 4, 2021 07:49
-
-
Save Utopiah/04474e6a8dc5c817fb14edad29c15332 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from https://github.com/zakaton/Bose-Frames-Web-SDK | |
var lib = "https://hubs-bose-js.glitch.me/script.js" | |
// TODO if CSP is disabled | |
// if not send warning with Firefox about:config setting security.csp.enable to false | |
if (!tools) { // mostly there for live testing | |
var tools = document.createElement("script") | |
tools.setAttribute("src", lib) | |
document.head.appendChild(tools) | |
tools.onload = readyScript | |
} else { | |
readyScript() | |
} | |
function readyScript(){ | |
console.log("bose js ready") | |
document.querySelector("#avatar-pov-node").object3D.rotateY(1) | |
var bosear = document.createElement("bose-ar-device") | |
document.body.appendChild(bosear) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment