Use window.log in browser context, turn on console eslint rule
This commit is contained in:
parent
4320b125dd
commit
5933a34a18
71 changed files with 816 additions and 559 deletions
|
@ -67,7 +67,7 @@
|
|||
userSetting,
|
||||
});
|
||||
|
||||
console.log(
|
||||
window.log.info(
|
||||
'Update notifications:',
|
||||
Object.assign({}, status, {
|
||||
isNotificationGroupingSupported,
|
||||
|
@ -128,7 +128,7 @@
|
|||
iconUrl = last.iconUrl;
|
||||
break;
|
||||
default:
|
||||
console.log(
|
||||
window.log.error(
|
||||
`Error: Unknown user notification setting: '${userSetting}'`
|
||||
);
|
||||
break;
|
||||
|
@ -161,11 +161,11 @@
|
|||
return storage.get('notification-setting') || SettingNames.MESSAGE;
|
||||
},
|
||||
onRemove() {
|
||||
console.log('Remove notification');
|
||||
window.log.info('Remove notification');
|
||||
this.update();
|
||||
},
|
||||
clear() {
|
||||
console.log('Remove all notifications');
|
||||
window.log.info('Remove all notifications');
|
||||
this.reset([]);
|
||||
this.update();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue