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:
parent
b64a276d4b
commit
fb59b2dd97
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue