I have one page, that load new elements via jquery. I have page that have event listener like ipcRenderer.send('getlist'); ipcRenderer.once('return:list', function (e, l, wn) {
Solution 1:
Actually there was TWO listeners that go twice.
It's ipcRenderer.on (replaced to .once) and jquery.on('click') that was bound to button that loads page. Fixed this with jquery.unbind().on('click').
Thanks for your help, obermillerk.
Share
Post a Comment
for "Electron Event Fires Multiple Times"
Post a Comment for "Electron Event Fires Multiple Times"