HighlightJSON icon indicating copy to clipboard operation
HighlightJSON copied to clipboard

Question is it working?

Open asyba opened this issue 2 years ago • 4 comments

What is suppose to do the app? I have it on my iphone and viewing a json output url on safari and after click the extension it is only showing a popout black text with a url to highlight.js

asyba avatar Mar 23 '22 03:03 asyba

It's limit to "matches": [ "*://*/*.json" ]. Try open a json file end with ".json" extension. https://github.com/lexrus/HighlightJSON/blob/main/HighlightJSON%20Extension/Resources/manifest.json#L19

Apparently it should look after the content type header of application/json for any text response. I'm looking for a proper and efficient way to do that.

lexrus avatar Mar 23 '22 03:03 lexrus

It's limit to "matches": [ "*://*/*.json" ]. Try open a json file end with ".json" extension. https://github.com/lexrus/HighlightJSON/blob/main/HighlightJSON%20Extension/Resources/manifest.json#L19

Apparently it should look after the content type header of application/json for any text response. I'm looking for a proper and efficient way to do that.

why no make it without restriciton ?any webstie that I want to format the json that can have or not content type or url with .json or not .json extension.

asyba avatar Mar 24 '22 20:03 asyba

oh its on the library itself and not your app

asyba avatar Mar 24 '22 22:03 asyba