| Index: background.js |
| =================================================================== |
| --- a/background.js |
| +++ b/background.js |
| @@ -345,8 +345,13 @@ |
| var texts = Notification.getLocalizedTexts(notification); |
| var title = texts.title || ""; |
| var message = texts.message ? texts.message.replace(/<\/?(a|strong)>/g, "") : ""; |
| - var iconUrl = ext.getURL("icons/abp-128.png"); |
| var hasLinks = activeNotification.links && activeNotification.links.length > 0; |
| + var iconUrl; |
| + if (require("info").platform == "chromium") |
| + iconUrl = ext.getURL("icons/abp-128.png"); |
| + else |
| + iconUrl = ext.getURL("icon.png"); |
|
Sebastian Noack
2014/03/13 15:55:14
This shouldn't be necessary. The code below that u
saroyanm
2014/03/13 16:01:19
iconUrl is also used to generate webkit notificati
Sebastian Noack
2014/03/13 16:20:00
In that case I would prefer to keep that image red
saroyanm
2014/03/13 16:31:19
I see your point, in that case if you are okey wit
Sebastian Noack
2014/03/13 16:36:43
Yep, considering my assumptions were wrong, the pa
|
| + |
| // Chrome on Linux does not fully support chrome.notifications yet |
| // https://code.google.com/p/chromium/issues/detail?id=291485 |
| if (require("info").platform == "chromium" && |