Skip to content
Snippets Groups Projects
Commit 58965214 authored by Robert Long's avatar Robert Long
Browse files

Add hosted aframe-inspector to fix csp issues.

parent 8564408e
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -7,6 +7,9 @@ import "./utils/logging";
import { patchWebGLRenderingContext } from "./utils/webgl";
patchWebGLRenderingContext();
// Get aframe inspector url using the webpack file-loader.
import aframeInspectorUrl from "file-loader!./assets/js/aframe-inspector";
import "three/examples/js/loaders/GLTFLoader";
import "networked-aframe/src/index";
import "naf-janus-adapter";
......@@ -237,6 +240,10 @@ const onReady = async () => {
const enterScene = async (mediaStream, enterInVR, hubId) => {
const scene = document.querySelector("a-scene");
// Set the aframe-inspector url to our hosted copy.
scene.setAttribute("inspector", { url: aframeInspectorUrl });
if (!isBotMode) {
scene.classList.add("no-cursor");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment