json-viewer
json-viewer copied to clipboard
Extension does not work for blob URLs
If I create an URL dynamically using URL.createObjectURL
, the extension does not detect JSON when I navigate to it.
Test code:
var blob = new Blob(['{ "lastname": "Dresden", "occupation": "Wizard" }'], {type: 'application/json'});
var url = URL.createObjectURL(blob);
$('body').append($('<a>Link to a JSON blob</a>').attr({
href: url,
target: '_blank'
}));
See http://jsfiddle.net/fQKYb/.
Thanks, it is an important feature. I will fix it.
I did a little research and confirmed my first thought about it, chrome extensions has access just to some schemes (
Thanks for the research! Raised it with Chrome: https://code.google.com/p/chromium/issues/detail?id=388972
what ever ended up happening with this? it's the end of 2023 and json viewer still doesn't work on blob:https://somewhere.com/abc-123
?