1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

removed error message when notification can not be closed

This commit is contained in:
kkapsner 2017-01-30 11:31:04 +01:00
parent f93f2958b7
commit b563a9d3ca
2 changed files with 7 additions and 1 deletions

View File

@ -122,7 +122,12 @@ exports.notify = function({url, errorStack, messageId}, {lists, notificationPref
var displayTime = notificationPref.displayTime();
if (displayTime){
notification.hideTimeout = setTimeout(function(){
notification.close();
try {
notification.close();
}
catch(e){
// tab is not in focus
}
}, displayTime * 1000);
}

View File

@ -9,6 +9,7 @@ Version 0.3.6:
fixes:
- faking webGL
- added readPixels for webGL2
- removed error message when notification can not be closed
Version 0.3.5
new features: