diff --git a/netmonitor-state-on-1_Countbelow20.JPG b/netmonitor-state-on-1_Countbelow20.JPG new file mode 100644 index 0000000..0a49d9c Binary files /dev/null and b/netmonitor-state-on-1_Countbelow20.JPG differ diff --git a/netmonitor-state-on-2_Countabove21.JPG b/netmonitor-state-on-2_Countabove21.JPG new file mode 100644 index 0000000..7235854 Binary files /dev/null and b/netmonitor-state-on-2_Countabove21.JPG differ diff --git a/static/background.js b/static/background.js index 6b08bb1..8010e06 100644 --- a/static/background.js +++ b/static/background.js @@ -62,6 +62,10 @@ function updateView([timesCurrentlyDoing /*: number */, timesAlreadyDone /*: num chrome.browserAction.setBadgeText({ text: String(timesAlreadyDone) }); if (timesCurrentlyDoing > 0) { chrome.browserAction.setIcon({ path: 'static/on.gif' }); + if(timesAlreadyDone <= 20) + chrome.browserAction.setBadgeBackgroundColor({color : [0,250,0,250]}); + else + chrome.browserAction.setBadgeBackgroundColor({color : [250,0,0,250]}); } else { chrome.browserAction.setIcon({ path: 'static/off.png' }); }