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:
parent
7ef342560e
commit
d8a5cf2283
@ -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
|
||||
|
@ -1,4 +1,7 @@
|
||||
Version 0.3.4:
|
||||
changes:
|
||||
- different fake modes show independent notifications
|
||||
|
||||
fixes:
|
||||
- performance issues
|
||||
- German translations
|
||||
|
Loading…
x
Reference in New Issue
Block a user