UNPKG

browsernizr

Version:

Modernizr wrapper for use with browserify

22 lines (20 loc) 564 B
/*! { "name": "Beacon API", "notes": [{ "name": "MDN Docs", "href": "https://developer.mozilla.org/en-US/docs/Web/API/navigator.sendBeacon" },{ "name": "W3C Spec", "href": "https://w3c.github.io/beacon/" }], "property": "beacon", "tags": ["beacon", "network"], "authors": ["Cătălin Mariș"] } !*/ /* DOC Detects support for an API that allows for asynchronous transfer of small HTTP data from the client to a server. */ var Modernizr = require('./../../lib/Modernizr.js'); Modernizr.addTest('beacon', 'sendBeacon' in navigator);