mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 12:06:31 +02:00
Dynamic notification id from message id.
This commit is contained in:
parent
7ef342560e
commit
d8a5cf2283
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue