Skip to content
Advertisement

My app doesn’t close on button, electron.js

I have this electron.js app and I would like the application to close when I click on the text with class closer. Here is my code:

HTML

JavaScript

main.js initialization electron

JavaScript

closer.js

JavaScript

My problem is that clicking the button, doesn’t work. What should I do?

Advertisement

Answer

JavaScript

I think you can do it with a loop like this.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement