UNPKG

browsernizr

Version:

Modernizr wrapper for use with browserify

20 lines (18 loc) 409 B
/*! { "name": "Fetch API", "property": "fetch", "tags": ["network"], "caniuse": "fetch", "notes": [{ "name": "WHATWG Spec", "href": "https://fetch.spec.whatwg.org/" }], "polyfills": ["fetch"] } !*/ /* DOC Detects support for the fetch API, a modern replacement for XMLHttpRequest. */ var Modernizr = require('./../../lib/Modernizr.js'); Modernizr.addTest('fetch', 'fetch' in window);