Permalink
Browse files

add context menu, add icons from common

  • Loading branch information...
1 parent e1f64db commit 6977bc0f0093a3eddacadd8240fef8c0a46ebea8 @octatone octatone committed Mar 1, 2013
Showing with 20 additions and 5 deletions.
  1. +1 −0 data/chrome/wunderlist-chrome.js
  2. +1 −1 data/common
  3. +14 −0 data/main.js
  4. +4 −4 manifest.json
@@ -1,5 +1,6 @@
(function (WL) {
+ // listener for menu button
chrome.extension.onConnect.addListener(function (rawPort) {
var port = PortWrapper(rawPort);
View
@@ -21,3 +21,17 @@ chrome.browserAction.onClicked.addListener(function (tab) {
});
});
+
+// context menu item
+chrome.contextMenus.create({
+
+ "title": "Add to Wunderlist",
+ "contexts": ["page", "selection", "image", "link"],
+ "onclick": function (info, tab) {
+
+ attachOverlay({
+
+ 'tab': tab
+ });
+ }
+});
View
@@ -6,7 +6,7 @@
"browser_action": {
- "default_icon": "icon.png"
+ "default_icon": "data/common/icons/AddToWLIcon128.png"
},
"content_scripts": [ {
@@ -57,8 +57,8 @@
"icons": {
- "16": "icon16.png",
- "48": "icon48.png",
- "128": "icon128.png"
+ "16": "data/common/icons/AddToWLIcon16.png",
+ "48": "data/common/icons/AddToWLIcon48.png",
+ "128": "data/common/icons/AddToWLIcon128.png"
}
}

0 comments on commit 6977bc0

Please sign in to comment.