File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -789,14 +789,13 @@ const reduceRightArray = arr.reduceRight((acc, current) => {
789
789
**[⬆ Back to Top](#table-of-contents)**
790
790
### Abort Fetch
791
791
792
- ```javascript
793
-
794
-
795
- //HTML
792
+ ```html
793
+ //html
796
794
<button id=" download" >Download</button>
797
- <button id=" abort" >Abort</button>
795
+ <button id=" abort" >Abort</button>
798
796
799
797
//JS
798
+ <script type=" text/ javascript" >
800
799
let controller;
801
800
802
801
document.querySelector('#download').addEventListener('click', () => {
@@ -809,7 +808,7 @@ document.querySelector('#download').addEventListener('click', () => {
809
808
document.querySelector('#abort').addEventListener('click', function() {
810
809
controller.abort();
811
810
});
812
-
811
+ </script>
813
812
```
814
813
815
814
You can’t perform that action at this time.
0 commit comments