Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Uncaught TypeError: undefined is not a function
- chrome.contextMenus.create({
- id:"click-me",
- title: "click-me",
- contexts : ["all"]
- });
- chrome.contextMenus.onClicked.AddListener(function(info, tab){
- alert("A context menu entry has been clicked: " + info.menuItemId);
- });
- {
- "manifest_version" : 2,
- "name": "Sample",
- "version": "1.0",
- "icons" : {
- "128" : "128.png"
- },
- "background" : {
- "scripts" : ["background.js"],
- "persistent" : false
- },
- "permissions":[
- "contextMenus",
- "tabs"
- ],
- "browser_action" : {
- "default_icon" : {
- "128" : "128.png"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement