aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
654 stars 201 forks source link

Local example not working #552

Closed donmccurdy closed 5 years ago

donmccurdy commented 6 years ago

After following the instructions for running locally, there is an error from inspector.js in the onDomLoaded callback:

    this.sceneEl = AFRAME.scenes[0];
    if (this.sceneEl.hasLoaded) {
      this.onSceneLoaded();
    } else {
      this.sceneEl.addEventListener('loaded', this.onSceneLoaded.bind(this));
    }

AFRAME.scenes is empty at this point, so the second line throws an error.