function updateContextMenu(force) {
    // The Chromium that Electron runs does not have a chrome.contextMenus,
    // so make sure this doesn't throw an error in Electron
    if (!chrome.contextMenus) {
      return;
    }

    // Only add context menu item when an Ember app has been detected
    var isEmberApp = !!activeTabs[activeTabId] || force;
    if (!isEmberApp && contextMenuAdded) {
      chrome.contextMenus.remove('inspect-ember-component');
      contextMenuAdded = false;
    }

    if (isEmberApp && !contextMenuAdded) {
      chrome.contextMenus.create({
        id: 'inspect-ember-component',
        title: 'Inspect Ember Component',
        contexts: ['all'],
      });
      contextMenuAdded = true;
    }
  }
Update the tab's contextMenu: https://developer.chrome.com/extensions/contextMenus
Add a menu item called "Inspect Ember Component" that shows info
about the component in the inspector.
@param {Boolean} force don't use the activeTabs array to check for an existing context menu