docs: Adds Customize Menu section Fiddle example (#20468)

This commit is contained in:
Yaser 2019-10-11 00:47:34 +11:00 committed by John Kleinschmidt
parent 1dc1ef6091
commit 9b4ba7993c
3 changed files with 496 additions and 0 deletions

View file

@ -0,0 +1,8 @@
const { ipcRenderer } = require('electron')
// Tell main process to show the menu when demo button is clicked
const contextMenuBtn = document.getElementById('context-menu')
contextMenuBtn.addEventListener('click', () => {
ipcRenderer.send('show-context-menu')
})