From a76a6098c47920cac1456672cf397c58909648b6 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Wed, 14 Mar 2018 11:55:08 -0400 Subject: [PATCH] Simplify log statement --- js/notifications.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/notifications.js b/js/notifications.js index f2e67138b..2c582e3b4 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -25,6 +25,7 @@ this.trigger('click', conversation); }, update: function() { + const {isEnabled} = this; const isFocused = window.isFocused(); const isAudioNotificationEnabled = storage.get('audio-notification') || false; const isAudioNotificationSupported = Settings.isAudioNotificationSupported(); @@ -33,13 +34,10 @@ const numNotifications = this.length; console.log( 'Update notifications:', - 'isFocused:', isFocused, - 'isEnabled:', this.isEnabled, - 'numNotifications:', numNotifications, - 'shouldPlayNotificationSound:', shouldPlayNotificationSound + {isFocused, isEnabled, numNotifications, shouldPlayNotificationSound} ); - if (!this.isEnabled) { + if (!isEnabled) { return; }