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 notifyBox = tabBrowser.getNotificationBox(browser);
|
||||||
var notification = notifyBox.getNotificationWithValue("fake-readout");
|
var notification = notifyBox.getNotificationWithValue("CanvasBlocker-" + messageId);
|
||||||
if (notification){
|
if (notification){
|
||||||
notification.label = message;
|
notification.label = message;
|
||||||
clearTimeout(notification.hideTimeout);
|
clearTimeout(notification.hideTimeout);
|
||||||
@ -110,7 +110,7 @@ exports.notify = function({url, errorStack, messageId}, {lists, notificationPref
|
|||||||
var priority = notifyBox.PRIORITY_WARNING_MEDIUM;
|
var priority = notifyBox.PRIORITY_WARNING_MEDIUM;
|
||||||
notification = notifyBox.appendNotification(
|
notification = notifyBox.appendNotification(
|
||||||
message,
|
message,
|
||||||
"fake-readout",
|
"CanvasBlocker-" + messageId,
|
||||||
"chrome://browser/skin/Info.png",
|
"chrome://browser/skin/Info.png",
|
||||||
priority,
|
priority,
|
||||||
buttons
|
buttons
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
Version 0.3.4:
|
Version 0.3.4:
|
||||||
|
changes:
|
||||||
|
- different fake modes show independent notifications
|
||||||
|
|
||||||
fixes:
|
fixes:
|
||||||
- performance issues
|
- performance issues
|
||||||
- German translations
|
- German translations
|
||||||
|
Loading…
x
Reference in New Issue
Block a user