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
How about adding
javascriptas a new special shortcut that expands to the following.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