chore: update wiki

This commit is contained in:
linonetwo 2023-06-24 01:13:28 +08:00
parent 07b6edf9df
commit 60f3b68648
2 changed files with 1 additions and 5 deletions

View file

@ -264,12 +264,8 @@ export class MenuService implements IMenuService {
/** Register `on('context-menu', openContextMenuForWindow)` for a window, return an unregister function */
public async initContextMenuForWindowWebContents(webContents: WebContents): Promise<() => void> {
const openContextMenuForWindow = async (event: Electron.Event, parameters: ContextMenuParams): Promise<void> => {
// DEBUG: console event
console.log(`event`, event);
await this.buildContextMenuAndPopup([], parameters, webContents);
};
// DEBUG: console webContents
console.log(`webContents`, webContents);
webContents.on('context-menu', openContextMenuForWindow);
return () => {

@ -1 +1 @@
Subproject commit 7ebcc8086930f061d365e5f2e00c853db4e6cf6f
Subproject commit 5d3e8703e70010e0ccbad3271cabc13aa8b57f03