Simplify log statement
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
this.trigger('click', conversation);
|
this.trigger('click', conversation);
|
||||||
},
|
},
|
||||||
update: function() {
|
update: function() {
|
||||||
|
const {isEnabled} = this;
|
||||||
const isFocused = window.isFocused();
|
const isFocused = window.isFocused();
|
||||||
const isAudioNotificationEnabled = storage.get('audio-notification') || false;
|
const isAudioNotificationEnabled = storage.get('audio-notification') || false;
|
||||||
const isAudioNotificationSupported = Settings.isAudioNotificationSupported();
|
const isAudioNotificationSupported = Settings.isAudioNotificationSupported();
|
||||||
@@ -33,13 +34,10 @@
|
|||||||
const numNotifications = this.length;
|
const numNotifications = this.length;
|
||||||
console.log(
|
console.log(
|
||||||
'Update notifications:',
|
'Update notifications:',
|
||||||
'isFocused:', isFocused,
|
{isFocused, isEnabled, numNotifications, shouldPlayNotificationSound}
|
||||||
'isEnabled:', this.isEnabled,
|
|
||||||
'numNotifications:', numNotifications,
|
|
||||||
'shouldPlayNotificationSound:', shouldPlayNotificationSound
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!this.isEnabled) {
|
if (!isEnabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user