forked from Modernizr/Modernizr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds PushManager feature detection Modernizr#2703 (Modernizr#2708)
* Adds PushManager feature detection * Fixes author metadata
- Loading branch information
1 parent
f937c31
commit 4d36bb2
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/*! | ||
{ | ||
"name": "PushManager", | ||
"property": "pushmanager", | ||
"caniuse": "mdn-api_pushmanager", | ||
"authors": ["Dawid Kulpa (@dawidkulpa)"], | ||
"notes": [{ | ||
"name": "MDN Docs", | ||
"href": "https://developer.mozilla.org/en-US/docs/Web/API/PushManager" | ||
}] | ||
} | ||
!*/ | ||
|
||
/* DOC | ||
Detects support for PushManager. | ||
*/ | ||
define(['Modernizr'], function(Modernizr) { | ||
Modernizr.addTest('pushmanager', 'PushManager' in window); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters