|
|
|
@@ -20,11 +20,15 @@ chrome.runtime.onInstalled.addListener(() => { |
|
|
|
*/ |
|
|
|
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { |
|
|
|
let icons = request.killingStickies ? { |
|
|
|
"19": "images/ASK_on_19.png", |
|
|
|
"38": "images/ASK_on_38.png", |
|
|
|
"16": "images/ASK_on_16.png", |
|
|
|
"32": "images/ASK_on_32.png", |
|
|
|
"48": "images/ASK_on_48.png", |
|
|
|
"128": "images/ASK_on_128.png" |
|
|
|
} : { |
|
|
|
"19": "images/ASK_off_19.png", |
|
|
|
"38": "images/ASK_off_38.png", |
|
|
|
"16": "images/ASK_off_16.png", |
|
|
|
"32": "images/ASK_off_32.png", |
|
|
|
"48": "images/ASK_off_48.png", |
|
|
|
"128": "images/ASK_off_128.png" |
|
|
|
}; |
|
|
|
chrome.pageAction.setIcon({ |
|
|
|
path: icons, |