mo / abortcontroller-polyfill

Polyfill for the AbortController DOM API and abortable fetch (stub that calls catch, doesn't actually abort request).
MIT License
328 stars 26 forks source link

simplify feature detection by looking for signal on Request prototype #32

Closed mo closed 5 years ago

mo commented 5 years ago

thanks for the suggestion @youennf

maybe something like this? if (typeof(Request) == "function" && Request.prototype.hasOwnProperty("signal")) { ... }

youennf commented 5 years ago

Sounds good.

mo commented 5 years ago

fixed in v1.2.5