UNPKG

modernizr

Version:

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

19 lines (18 loc) 435 B
/*! { "name": "Server Sent Events", "property": "eventsource", "tags": ["network"], "builderAliases": ["network_eventsource"], "notes": [{ "name": "WHATWG Spec", "href": "https://html.spec.whatwg.org/multipage/comms.html#server-sent-events" }] } !*/ /* DOC Tests for server sent events aka eventsource. */ define(['Modernizr'], function(Modernizr) { Modernizr.addTest('eventsource', 'EventSource' in window); });