UNPKG

modernizr

Version:

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

19 lines (17 loc) 354 B
/*! { "name": "Server Sent Events", "property": "eventsource", "tags": ["network"], "notes": [{ "name": "W3 Spec", "href": "http://dev.w3.org/html5/eventsource/" }] } !*/ /* DOC Tests for server sent events aka eventsource. */ define(['Modernizr'], function( Modernizr ) { Modernizr.addTest('eventsource', !!window.EventSource); });