type-is icon indicating copy to clipboard operation
type-is copied to clipboard

Javascript as new special shortcut

Open LinusU opened this issue 9 years ago • 1 comments

How about adding javascript as a new special shortcut that expands to the following.

['application/javascript', 'application/x-javascript', `text/javascript`]

Unfortunately there are still a few servers out in the wild that returns one of the two latter which breaks my script :(

Here are some info on how/when/why they were used: Difference between application/x-javascript and text/javascript content types @ StackOverflow

LinusU avatar Jun 12 '15 08:06 LinusU

Hi! So actually thinking about this for a bit, I think that at some point (would need a major version bump), just using extensions at all should mean "any type that maps to this extension", rather than what it means right now, which is "the most-preferred type that maps to this extension".

For now, we could potentially just add exceptions until we're ready to blanket it in the next major. I would say yes, we should make this exception and just apply it to js directly, rather than adding a new thing :)

dougwilson avatar Jun 13 '15 04:06 dougwilson