We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9fb768 commit 305678eCopy full SHA for 305678e
README.md
@@ -789,14 +789,13 @@ const reduceRightArray = arr.reduceRight((acc, current) => {
789
**[⬆ Back to Top](#table-of-contents)**
790
### Abort Fetch
791
792
-```javascript
793
-
794
795
-//HTML
+```html
+//html
796
<button id="download">Download</button>
797
-<button id="abort">Abort</button>
+ <button id="abort">Abort</button>
798
799
//JS
+<script type="text/javascript">
800
let controller;
801
802
document.querySelector('#download').addEventListener('click', () => {
@@ -809,7 +808,7 @@ document.querySelector('#download').addEventListener('click', () => {
809
808
document.querySelector('#abort').addEventListener('click', function() {
810
controller.abort();
811
});
812
+</script>
813
```
814
815
0 commit comments