Improve window activity detection, improving notification delivery

This commit is contained in:
Evan Hahn 2020-12-17 17:12:15 -06:00 committed by Scott Nonnenberg
parent be9721c72d
commit 8ace4b6321
7 changed files with 290 additions and 46 deletions

View file

@ -89,12 +89,19 @@
});
if (status.type !== 'ok') {
window.log.info(
`Not updating notifications; notification status is ${status.type}. ${
status.shouldClearNotifications ? 'Also clearing notifications' : ''
}`
);
if (status.shouldClearNotifications) {
this.notificationData = null;
}
return;
}
window.log.info('Showing a notification');
let notificationTitle;
let notificationMessage;