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 SUPPORTED_CONFIG_VERSION = 1;
|
||||||
|
|
||||||
const NOTIFICATION_OPTION_NAMES = [
|
const NOTIFICATION_OPTION_NAMES = [
|
||||||
'actions', 'body', 'dir', 'icon', 'lang', 'renotify', 'requireInteraction', 'tag', 'vibrate',
|
'actions', 'badge', 'body', 'dir', 'icon', 'lang', 'renotify', 'requireInteraction', 'tag',
|
||||||
'data'
|
'vibrate', 'data'
|
||||||
];
|
];
|
||||||
|
|
||||||
interface LatestEntry {
|
interface LatestEntry {
|
||||||
|
|
Loading…
Reference in New Issue