JavaScript-snippets icon indicating copy to clipboard operation
JavaScript-snippets copied to clipboard

Adding script tags for abort fetch snippet

Open rhygg opened this issue 4 years ago • 0 comments
trafficstars

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.

rhygg avatar Jun 23 '21 03:06 rhygg