set normal alien on loading and usual states

This commit is contained in:
Kerrick Long
2011-07-15 23:15:26 -05:00
parent 400d3d3550
commit 41008902d4
+2
View File
@@ -185,6 +185,7 @@ BrowserAction.prototype.setBadgeIgnore = function (tabId) {
* @method
*/
BrowserAction.prototype.setBadgeLoading = function (tabId) {
chrome.browserAction.setIcon({'path': '/pix/alien.png', 'tabId': tabId});
chrome.browserAction.setBadgeText({'text': '', 'tabId': tabId});
chrome.browserAction.setTitle({'title': 'Loading data...', 'tabId': tabId});
chrome.browserAction.setPopup({popup: '', tabId: tabId});
@@ -223,6 +224,7 @@ BrowserAction.prototype.setBadgeFor = function (url, tabId) {
var cachedPosts;
cachedPosts = cache.get(url);
chrome.browserAction.setIcon({'path': '/pix/alien.png', 'tabId': tabId});
if (cachedPosts.isCommentsPage === true) {
chrome.browserAction.setBadgeText({'text': '...', 'tabId': tabId});