#How to start function in render.js if event in main.js happens?

3 messages · Page 1 of 1 (latest)

long crown
#

For example.
main.js:

app.on('any event', () => {
  // code
})

How do I start JS function in render.js when the event happens? Im really new in using electron.js, thanks.

harsh lotus
long crown