Index: lib/notificationHelper.js |
diff --git a/lib/notificationHelper.js b/lib/notificationHelper.js |
index 385614a351d505b1f665d9eb42ad484d47585f74..499756d74ff82d9e2351376ae809c180630dcd10 100644 |
--- a/lib/notificationHelper.js |
+++ b/lib/notificationHelper.js |
@@ -30,6 +30,7 @@ let displayMethods = Object.create(null); |
displayMethods.critical = ["icon", "notification", "popup"]; |
displayMethods.question = ["notification"]; |
displayMethods.normal = ["notification"]; |
+displayMethods.relentless = ["notification"]; |
displayMethods.information = ["icon", "popup"]; |
// Chrome on Linux does not fully support chrome.notifications until version 35 |
@@ -98,7 +99,7 @@ function getNotificationButtons(notificationType, message) |
} |
]; |
} |
- if (notificationType != "critical") |
+ if (notificationType != "critical" && notificationType != "relentless") |
{ |
buttons.push({ |
type: "configure", |
@@ -238,6 +239,9 @@ function showNotification(notification) |
} |
} |
prepareNotificationIconAndPopup(); |
+ |
+ if (notification.type != "question") |
+ NotificationStorage.markAsShown(notification.id); |
}; |
/** |