mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-09 15:47:55 -05:00
20 lines
611 B
JavaScript
20 lines
611 B
JavaScript
/*!
|
|
{
|
|
"name": "Broadcast Channel",
|
|
"property": "broadcastchannel",
|
|
"authors": ["Alex Neises (@AlexNeises)"],
|
|
"caniuse": "broadcastchannel",
|
|
"tags": ["performance", "broadcastchannel"],
|
|
"notes": [{
|
|
"name": "MDN Docs",
|
|
"href": "https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for Broadcast Channels, allowing communication between different documents in different windows, tabs, frames, or iframes of the same origin.
|
|
*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
Modernizr.addTest('broadcastchannel', 'BroadcastChannel' in window);
|
|
});
|