From d8a5cf22831060d055ee7b65a43bc6a4b5bcfaa6 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Tue, 22 Nov 2016 08:30:57 +0100 Subject: [PATCH] Dynamic notification id from message id. --- lib/notifications.js | 4 ++-- releaseNotes.txt | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/notifications.js b/lib/notifications.js index 4f05e68..8219c35 100644 --- a/lib/notifications.js +++ b/lib/notifications.js @@ -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 diff --git a/releaseNotes.txt b/releaseNotes.txt index 3f7d3e4..5d04e22 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -1,4 +1,7 @@ Version 0.3.4: + changes: + - different fake modes show independent notifications + fixes: - performance issues - German translations