Last fix in #148 worked, but it can be fixed in a much better way
The original error came from the fact that Electron.MenuItem.click() was called with the wrong parameters:
(those are parameters that the user registered callback for click should receive, but electron takes care of that)
Last fix in #148 worked, but it can be fixed in a much better way
The original error came from the fact that
Electron.MenuItem.click()
was called with the wrong parameters: (those are parameters that the user registered callback for click should receive, but electron takes care of that)https://github.com/AlexTorresSk/custom-electron-titlebar/blob/8901746f905682f89b0b58378e845fd053437009/src/menu/menuitem.ts#L141
The right parameters for
MenuItem.click
are:As defined in Electron.MenuItem