Skip to content

Tag: electron

Eventlistener function is undefined?

When a button is clicked I want the event listener to be removed. As shown in the code above, removeAllListeners works, however, I do not want all listeners to be removed. I believe I can use removeListener(‘message’, function) but if I try to put removeListener(‘message’, startMe()) I…

apis delcared in contextbridge undefined in render process

I’ve been working on updating a electron app from 11.x to 12.x and have run into an issue where the apis declared by contextBridge.exposeInMainWorld come as undefined when called upon through window. This is my preload.js file my app.js I’m lost on why contextBridge doesn’t work. Answer The …