Skip to content

Commit

Permalink
Added right click image sharing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Ashworth committed Jul 17, 2012
1 parent 56e26ea commit 3e5e8a5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions firefox/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,17 @@ menu.selection = cm.Item({
}
});

menu.image = cm.Item({
label: config.plugin.menu.image.label,
image: config.plugin.icon.static,
context: cm.SelectorContext('img'),
contentScriptFile: config.plugin.menu.image.scripts,
contentScriptWhen: 'start',
onMessage: function (src) {
attachOverlay({placement: 'menu-image', image: src});
}
});

// Options & Preferences

/**
Expand Down

0 comments on commit 3e5e8a5

Please sign in to comment.