marionettejs / marionette.inspector

:mag: Marionette Inspector - Explore your App
http://goo.gl/Wo3pju
MIT License
170 stars 42 forks source link

Inspector should handle local file URLs #114

Open ianmstew opened 9 years ago

ianmstew commented 9 years ago

Currently, the Inspector will not start given a local file URL. Ember Inspector does work locally; so should the Inspector.

jasonLaster commented 9 years ago

Just going to say it, I have no idea how to do this :)

Maluen commented 9 years ago

Could be the content script that doesn't load in that specific url, although file:// is whitelisted, you can set the allowed urls in the content_scripts "matches" property in the manifest.json file:

https://github.com/marionettejs/marionette.inspector/blob/master/extension/manifest.json#L24

If you want the ultimate "run it everywhere" solution, use

  "content_scripts": [
    {
      "matches": ["<all_urls>"],
      "match_about_blank": true,
      "all_frames": true
     /* ... */
    }
marfire commented 9 years ago

In the meantime, I suggest documenting this limitation in the README. I just wasted some time trying to get Inspector to work before finding this issue.

jasonLaster commented 9 years ago

@marfire try out Manuels fix