Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding script tags for abort fetch snippet #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rhygg
Copy link

@rhygg rhygg commented Jun 23, 2021

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.

Copy link

@longqua69 longqua69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your intention is good. It makes the snippet easier to understand. Removing the redundant space makes it better

README.md Outdated
<button id="download">Download</button>
<button id="abort">Abort</button>
<button id="abort">Abort</button>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should remove the redundant space for aligning.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. sure.

Copy link

@longqua69 longqua69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. Now it's time to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants