litejs / json-lite

Fast non-blocking JSON viewer for Chrome and Firefox
196 stars 17 forks source link

doesn't work for 'file://' URLS #29

Closed slchorne closed 6 years ago

slchorne commented 6 years ago

If you open a json file with a 'file://' URL the renderer doesn't work at all. I don't know if this is a safari limitation, or the plugin

lauriro commented 6 years ago

In Chrome there is an option 'Allow access to file URLs' for extension in chrome://extensions page.

First results from google suggest that this is not possible in safari. At the moment I do not have an access to osx.

lauriro commented 6 years ago

I have an untested idea, that global background page works with file urls, just content script is not injected. So maybe it is possible to inject content script from background.

lauriro commented 6 years ago

last idea did not worked out, not doable by current knowledge