add taskbar icon
This commit is contained in:
parent
3dbd3c0dde
commit
da0cf7a6de
8 changed files with 15 additions and 6 deletions
|
@ -65,10 +65,11 @@ chrome.extension.onConnect.addListener(function(port) {
|
|||
);
|
||||
|
||||
chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
|
||||
console.log(sender.tab);
|
||||
if (message.action === "test") {
|
||||
if (message.usesPiwik) {
|
||||
chrome.browserAction.setBadgeText({text: "Piwik!", tabId: sender.tab.id});
|
||||
chrome.pageAction.show(sender.tab.id);
|
||||
} else {
|
||||
chrome.pageAction.hide(sender.tab.id);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
BIN
images/applogo_732.png
Normal file
BIN
images/applogo_732.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
BIN
images/icon128.png
Normal file
BIN
images/icon128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
images/icon16.png
Normal file
BIN
images/icon16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 696 B |
BIN
images/icon24.png
Normal file
BIN
images/icon24.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 951 B |
BIN
images/icon32.png
Normal file
BIN
images/icon32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
images/icon48.png
Normal file
BIN
images/icon48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
|
@ -16,11 +16,19 @@
|
|||
"background.js"
|
||||
]
|
||||
},
|
||||
"browser_action": {
|
||||
"default_title": "Google Mail",
|
||||
// optional; shown in tooltip
|
||||
"icons": {
|
||||
"16": "images/icon16.png",
|
||||
"48": "images/icon48.png",
|
||||
"128": "images/icon128.png"
|
||||
},
|
||||
"page_action": {
|
||||
"default_icon": {
|
||||
"16": "images/icon16.png",
|
||||
"24": "images/icon24.png",
|
||||
"32": "images/icon32.png"
|
||||
},
|
||||
"default_title": "Piwik Checker",
|
||||
"default_popup": "popup.html"
|
||||
// optional
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
|
|
Reference in a new issue