From 0121dc7a5ab75313a803f6a3caa9385c58e03d7e Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Fri, 4 May 2018 15:37:38 -0400 Subject: [PATCH] Log notification grouping support --- js/notifications.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/notifications.js b/js/notifications.js index ccb87ec5b..3d6fb6ec2 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -38,6 +38,7 @@ const isAudioNotificationEnabled = storage.get('audio-notification') || false; const isAudioNotificationSupported = Settings.isAudioNotificationSupported(); + const isNotificationGroupingSupported = Settings.isNotificationGroupingSupported(); const numNotifications = this.length; const userSetting = this.getUserSetting(); @@ -50,7 +51,12 @@ userSetting, }); - console.log('Update notifications:', status); + console.log( + 'Update notifications:', + Object.assign({}, status, { + isNotificationGroupingSupported, + }) + ); if (status.type !== 'ok') { if (status.shouldClearNotifications) { @@ -100,7 +106,6 @@ drawAttention(); - const isNotificationGroupingSupported = Settings.isNotificationGroupingSupported(); const notification = new Notification(title, { body: message, icon: iconUrl,