Skip to content

Commit 7b23983

Browse files
HiveSolutionIgorMinar
authored andcommitted
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
1 parent 21f3301 commit 7b23983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/service-worker/worker/src/driver.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const IDLE_THRESHOLD = 5000;
3131
const SUPPORTED_CONFIG_VERSION = 1;
3232

3333
const NOTIFICATION_OPTION_NAMES = [
34-
'actions', 'body', 'dir', 'icon', 'lang', 'renotify', 'requireInteraction', 'tag', 'vibrate',
35-
'data'
34+
'actions', 'badge', 'body', 'dir', 'icon', 'lang', 'renotify', 'requireInteraction', 'tag',
35+
'vibrate', 'data'
3636
];
3737

3838
interface LatestEntry {

0 commit comments

Comments
 (0)