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.
Develop games in your browser. Powerful, performant & highly capable.
Check this post..
The 'Close' action should work, there's an open bug on the node-webkit tracker about it.
So just use window.close() then :)