Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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