Anyone know electron?

I am stuck on a very simple issue.
I have a menu on electron and on the docs
it says that it emits a menu-will-show event.

sizeMenu.on(‘menu-will-show’, (event) => {

this is my code and its not catching anything. sizeMenu is and instance of the menu class. I was wondering if anyone here knew anything about it.

Without seeing the rest of your codebase, my only thought is

Emitted when menu.popup() is called.

are you calling that menu method somewhere?

If you need more help, you’ll have to either post a repo or at the least, you’re whole implementation of the menu and it’s intended usage.