mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-04-27 15:50:57 -07:00
13 lines
365 B
JavaScript
13 lines
365 B
JavaScript
const { remote } = require('electron');
|
|
const contextMenu = require('electron-context-menu');
|
|
|
|
// A much simpler version of public/libs/context-menu-builder.js
|
|
contextMenu({
|
|
window: remote.getCurrentWindow(),
|
|
prepend: (_, __, browserWindow) => [
|
|
{
|
|
label: 'Developer Tools',
|
|
click: () => browserWindow.webContents.openDevTools(),
|
|
},
|
|
],
|
|
});
|