1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-03 10:31:54 +01:00

Dynamic notification id from message id.

This commit is contained in:
kkapsner 2016-11-22 08:30:57 +01:00
parent 7ef342560e
commit d8a5cf2283
2 changed files with 5 additions and 2 deletions

View File

@ -33,7 +33,7 @@ exports.notify = function({url, errorStack, messageId}, {lists, notificationPref
}
var notifyBox = tabBrowser.getNotificationBox(browser);
var notification = notifyBox.getNotificationWithValue("fake-readout");
var notification = notifyBox.getNotificationWithValue("CanvasBlocker-" + messageId);
if (notification){
notification.label = message;
clearTimeout(notification.hideTimeout);
@ -110,7 +110,7 @@ exports.notify = function({url, errorStack, messageId}, {lists, notificationPref
var priority = notifyBox.PRIORITY_WARNING_MEDIUM;
notification = notifyBox.appendNotification(
message,
"fake-readout",
"CanvasBlocker-" + messageId,
"chrome://browser/skin/Info.png",
priority,
buttons

View File

@ -1,4 +1,7 @@
Version 0.3.4:
changes:
- different fake modes show independent notifications
fixes:
- performance issues
- German translations