{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/electron-context-menu/issues/56","repository_url":"https://api.github.com/repos/sindresorhus/electron-context-menu","labels_url":"https://api.github.com/repos/sindresorhus/electron-context-menu/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/electron-context-menu/issues/56/comments","events_url":"https://api.github.com/repos/sindresorhus/electron-context-menu/issues/56/events","html_url":"https://github.com/sindresorhus/electron-context-menu/issues/56","id":349847901,"node_id":"MDU6SXNzdWUzNDk4NDc5MDE=","number":56,"title":"electron-context-menu incompatible with electron 2.0.x?","user":{"login":"TheGoddessInari","id":38739324,"node_id":"MDQ6VXNlcjM4NzM5MzI0","avatar_url":"https://avatars0.githubusercontent.com/u/38739324?v=4","gravatar_id":"","url":"https://api.github.com/users/TheGoddessInari","html_url":"https://github.com/TheGoddessInari","followers_url":"https://api.github.com/users/TheGoddessInari/followers","following_url":"https://api.github.com/users/TheGoddessInari/following{/other_user}","gists_url":"https://api.github.com/users/TheGoddessInari/gists{/gist_id}","starred_url":"https://api.github.com/users/TheGoddessInari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheGoddessInari/subscriptions","organizations_url":"https://api.github.com/users/TheGoddessInari/orgs","repos_url":"https://api.github.com/users/TheGoddessInari/repos","events_url":"https://api.github.com/users/TheGoddessInari/events{/privacy}","received_events_url":"https://api.github.com/users/TheGoddessInari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-12T22:05:05Z","updated_at":"2018-10-25T00:20:40Z","closed_at":null,"author_association":"NONE","body":"I've tried it a number of times with a electron 2.0.x webview and no context menu appears. \r\nWorks fine with electron 1.8.x.\r\nTotally default, no customization."},"comment":{"url":"https://api.github.com/repos/sindresorhus/electron-context-menu/issues/comments/432871012","html_url":"https://github.com/sindresorhus/electron-context-menu/issues/56#issuecomment-432871012","issue_url":"https://api.github.com/repos/sindresorhus/electron-context-menu/issues/56","id":432871012,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjg3MTAxMg==","user":{"login":"EddieOne","id":1835156,"node_id":"MDQ6VXNlcjE4MzUxNTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1835156?v=4","gravatar_id":"","url":"https://api.github.com/users/EddieOne","html_url":"https://github.com/EddieOne","followers_url":"https://api.github.com/users/EddieOne/followers","following_url":"https://api.github.com/users/EddieOne/following{/other_user}","gists_url":"https://api.github.com/users/EddieOne/gists{/gist_id}","starred_url":"https://api.github.com/users/EddieOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EddieOne/subscriptions","organizations_url":"https://api.github.com/users/EddieOne/orgs","repos_url":"https://api.github.com/users/EddieOne/repos","events_url":"https://api.github.com/users/EddieOne/events{/privacy}","received_events_url":"https://api.github.com/users/EddieOne/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T00:20:40Z","updated_at":"2018-10-25T00:20:40Z","author_association":"NONE","body":"The usage example it kind of dumb because it only shows a label when right clicking an image. Here's a better one.\r\n\r\n```\r\nrequire('electron-context-menu')({\r\n  prepend: (params, browserWindow) => [{\r\n    label: 'Home', click(){\r\n      mainWindow.loadURL('https://www.example.com/')\r\n    }\r\n  },\r\n  {\r\n    label: 'Back', click(){\r\n      mainWindow.webContents.goBack()\r\n    }\r\n  }]\r\n});\r\n```"}}
{"actor":{"display_login":"EddieOne"}}