Skip to content

Commit

Permalink
Adds PushManager feature detection Modernizr#2703 (Modernizr#2708)
Browse files Browse the repository at this point in the history
* Adds PushManager feature detection

* Fixes author metadata
  • Loading branch information
dawidkulpa authored Oct 16, 2022
1 parent f937c31 commit 4d36bb2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions feature-detects/window/pushmanager.js
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);
});
1 change: 1 addition & 0 deletions lib/config-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@
"window/atob-btoa",
"window/framed",
"window/matchmedia",
"window/pushmanager",
"window/resizeobserver",
"workers/blobworkers",
"workers/dataworkers",
Expand Down
1 change: 1 addition & 0 deletions test/browser/integration/caniuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ window.caniusecb = function(caniuse) {
progressbar: 'progress',
promises: 'promises',
proximity: 'proximity',
pushmanager: 'mdn-api_pushmanager',
queryselector: 'queryselector',
regions: 'css-regions',
requestanimationframe: 'requestanimationframe',
Expand Down

0 comments on commit 4d36bb2

Please sign in to comment.