Skip to content

Commit

Permalink
fix(service-worker): add badge to NOTIFICATION_OPTION_NAMES (#23241)
Browse files Browse the repository at this point in the history
Add badge to NOTIFICATION_OPTION_NAMES to support custom notification badge/icon.
Fixes #23196
PR Close #23241
  • Loading branch information
HiveSolution authored and IgorMinar committed Apr 16, 2018
1 parent 21f3301 commit 7b23983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/service-worker/worker/src/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const IDLE_THRESHOLD = 5000;
const SUPPORTED_CONFIG_VERSION = 1;

const NOTIFICATION_OPTION_NAMES = [
'actions', 'body', 'dir', 'icon', 'lang', 'renotify', 'requireInteraction', 'tag', 'vibrate',
'data'
'actions', 'badge', 'body', 'dir', 'icon', 'lang', 'renotify', 'requireInteraction', 'tag',
'vibrate', 'data'
];

interface LatestEntry {
Expand Down

0 comments on commit 7b23983

Please sign in to comment.