yegorf1 Posted May 18, 2014 Share Posted May 18, 2014 Actually, this topic not about Phaser. Just want to now how to exit form my cocoonjs app. I tried to close app viafunction exit() { window.open(window.location, '_self').close();}But it doesn't work. Any ideas? Link to comment Share on other sites More sharing options...
halkeye Posted May 18, 2014 Share Posted May 18, 2014 If you are just trying to close the window, you should be able to just do:function exit() { window.close(); }If your code works, it opens a duplicate window of itself, then immediately closes it. Link to comment Share on other sites More sharing options...
Recommended Posts