All the methods I've seen in the area of simply adding a function that closes your application window, it always results in "Browser -> Close"
Yet when I close the game in this method, it leaves a lingering NW.js application running.
What's worse? When I start the game up, and close it again it just adds an additional NW.js app. Eventually and unknowingly causing a bulk load of invisible apps.
What's causing this? What's a simple more proper way of making a function that "Exits" the application?
Develop games in your browser. Powerful, performant & highly capable.
Fixed, go to Page 7 here: