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

Unified Diff: chrome/background.js

Issue 5867629902299136: Fixed various issues in older Chrome versions (Closed)
Patch Set: Created Dec. 19, 2013, 10:46 a.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/common.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/background.js
===================================================================
--- a/chrome/background.js
+++ b/chrome/background.js
@@ -214,25 +214,25 @@
if (!badge)
{
chrome.browserAction.setBadgeText({
tabId: this._tabId,
text: ""
});
return;
}
-
+
if ("color" in badge)
{
chrome.browserAction.setBadgeBackgroundColor({
tabId: this._tabId,
color: badge.color
});
}
-
+
if ("number" in badge)
{
chrome.browserAction.setBadgeText({
tabId: this._tabId,
text: badge.number.toString()
});
}
}
« no previous file with comments | « no previous file | chrome/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld