From fb59b2dd9795dfe913e65d821fd4012d71d4075b Mon Sep 17 00:00:00 2001 From: HiveSolution Date: Sat, 7 Apr 2018 22:22:57 +0200 Subject: [PATCH] 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 --- packages/service-worker/worker/src/driver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/service-worker/worker/src/driver.ts b/packages/service-worker/worker/src/driver.ts index ab5545486f..d09045e066 100644 --- a/packages/service-worker/worker/src/driver.ts +++ b/packages/service-worker/worker/src/driver.ts @@ -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 {