Skip to content

Instantly share code, notes, and snippets.

@Utopiah
Last active March 4, 2021 07:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Utopiah/04474e6a8dc5c817fb14edad29c15332 to your computer and use it in GitHub Desktop.
Save Utopiah/04474e6a8dc5c817fb14edad29c15332 to your computer and use it in GitHub Desktop.
// 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