It's a common feature for PC games, so how come Node-Webkit doesn't have this function? Or is there a workaround for this?
And before you suggest this, using the "Close" event in the Browser Plugin doesn't work, doing it freezes/crashes the game.
Check this post..
scirra.com/forum/topic70473_page1.html
The 'Close' action should work, there's an open bug on the node-webkit tracker about it.
Develop games in your browser. Powerful, performant & highly capable.
Thanks!
So just use window.close() then :)