Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: background.js

Issue 5709671373471744: Unused icons for Chrome/Safari builds (Closed)
Patch Set: abp-128.png moved to chrome folder Created March 13, 2014, 3:21 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/icons/abp-128.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" &&
« no previous file with comments | « no previous file | chrome/icons/abp-128.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld