| Index: lib/notificationHelper.js |
| diff --git a/lib/notificationHelper.js b/lib/notificationHelper.js |
| index 84f34b3dcf966543a918bfae43efc78bd6565fbe..6341e81ad8ec88e7ed5e378313dfa4a73a698929 100644 |
| --- a/lib/notificationHelper.js |
| +++ b/lib/notificationHelper.js |
| @@ -33,20 +33,8 @@ displayMethods.question = ["notification"]; |
| displayMethods.normal = ["notification"]; |
| displayMethods.information = ["icon", "popup"]; |
| -// Chrome on Linux does not fully support chrome.notifications until version 35 |
| -// https://code.google.com/p/chromium/issues/detail?id=291485 |
| -let canUseChromeNotifications = (function() |
| -{ |
| - let info = require("info"); |
| - if (info.platform == "chromium" && "notifications" in chrome) |
| - { |
| - if (navigator.platform.indexOf("Linux") == -1) |
| - return true; |
| - if (Services.vc.compare(info.applicationVersion, "35") >= 0) |
| - return true; |
| - } |
| - return false; |
| -})(); |
| +let platform = require("info").platform; |
| +let canUseChromeNotifications = platform == "chromium" && "notifications" in chrome; |
|
Sebastian Noack
2017/01/13 11:43:23
Any reason to still check for the platform? This w
kzar
2017/01/16 04:15:37
Not really but IMO that change is for when we swit
Sebastian Noack
2017/01/16 13:39:59
Well, when we switch to the browser.* API we would
kzar
2017/01/16 13:50:22
I guess not, Done.
|
| function prepareNotificationIconAndPopup() |
| { |