From 41008902d4624f8619fe7da279d594732ee763a9 Mon Sep 17 00:00:00 2001 From: Kerrick Long Date: Fri, 15 Jul 2011 23:15:26 -0500 Subject: [PATCH] set normal alien on loading and usual states --- js/common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/common.js b/js/common.js index 4430299..a9a695b 100644 --- a/js/common.js +++ b/js/common.js @@ -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});