JavaScript-snippets
JavaScript-snippets copied to clipboard
Adding script tags for abort fetch snippet
trafficstars
- This pull request adds script tags in the abort fetch snippet
Why?
Since this is vanilla JS you can put it under <script></script> tags, so that it's easier to understand what's going on. Moreover the syntax highlight for the html snippet breaks due to the syntax highlight being configured to javascript. Keeping the syntax highlight to html keeps the highlight for html and javascript intact.