Closed PetrosKalafatidis closed 6 years ago
I have tested with chrome.contextMenus and it's null again.
chrome.runtime.onInstalled.addListener(function() { // Replace all rules ... var id = chrome.contextMenus.create({"title": 'test menu', "contexts": ["selection"], "onclick": genericOnClick}); });
I have loaded the boilerplate on chrome and start watching it. npm run chrome-watch
When I am trying to use contextMenus I am getting a null error
background.js ext.runtime.onInstalled.addListener(() => { var id = ext.contextMenus.create({"title": "test menu", "contexts": ["selection"], "onclick": genericOnClick}); });
This gives me an error 'Cannot read property 'create' of null' I am tracing the ext object and I see a bunch of null values , alarms, bookmarks etc.