blob: d04f90830c6384d184ce19ddae0ce6f3eb015397 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { remote } from 'electron';
import ContextMenuBuilder from './contextMenuBuilder';
const webContents = remote.getCurrentWebContents();
export default async function setupContextMenu() {
const contextMenuBuilder = new ContextMenuBuilder(
webContents,
);
webContents.on('context-menu', (event, params) => {
contextMenuBuilder.showPopupMenu(params);
});
}
|