fix(service-worker): add badge to NOTIFICATION_OPTION_NAMES (#23241)

Add badge to NOTIFICATION_OPTION_NAMES to support custom notification badge/icon.
Fixes #23196
PR Close #23241
This commit is contained in:
HiveSolution 2018-04-07 22:22:57 +02:00 committed by Igor Minar
parent b64a276d4b
commit fb59b2dd97
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,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 {