mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-31 17:11:54 +01:00
removed error message when notification can not be closed
This commit is contained in:
parent
f93f2958b7
commit
b563a9d3ca
@ -122,7 +122,12 @@ exports.notify = function({url, errorStack, messageId}, {lists, notificationPref
|
|||||||
var displayTime = notificationPref.displayTime();
|
var displayTime = notificationPref.displayTime();
|
||||||
if (displayTime){
|
if (displayTime){
|
||||||
notification.hideTimeout = setTimeout(function(){
|
notification.hideTimeout = setTimeout(function(){
|
||||||
notification.close();
|
try {
|
||||||
|
notification.close();
|
||||||
|
}
|
||||||
|
catch(e){
|
||||||
|
// tab is not in focus
|
||||||
|
}
|
||||||
}, displayTime * 1000);
|
}, displayTime * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ Version 0.3.6:
|
|||||||
fixes:
|
fixes:
|
||||||
- faking webGL
|
- faking webGL
|
||||||
- added readPixels for webGL2
|
- added readPixels for webGL2
|
||||||
|
- removed error message when notification can not be closed
|
||||||
|
|
||||||
Version 0.3.5
|
Version 0.3.5
|
||||||
new features:
|
new features:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user