Simplify log statement
This commit is contained in:
parent
dbdf6fd880
commit
a76a6098c4
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue