mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
20 lines
466 B
JavaScript
20 lines
466 B
JavaScript
/*!
|
|
{
|
|
"name": "Shared Workers",
|
|
"property": "sharedworkers",
|
|
"caniuse": "sharedworkers",
|
|
"tags": ["performance", "workers"],
|
|
"builderAliases": ["workers_sharedworkers"],
|
|
"notes": [{
|
|
"name": "W3C Spec",
|
|
"href": "https://www.w3.org/TR/workers/"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for the `SharedWorker` API from the Web Workers spec.
|
|
*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
Modernizr.addTest('sharedworkers', 'SharedWorker' in window);
|
|
});
|