Polyfill for the AbortController DOM API and abortable fetch (stub that calls catch, doesn't actually abort request).
328
stars
26
forks
source link
simplify feature detection by looking for signal on Request prototype #32
Closed
mo closed 5 years ago
thanks for the suggestion @youennf
maybe something like this? if (typeof(Request) == "function" && Request.prototype.hasOwnProperty("signal")) { ... }