Open FormularSumo opened 2 years ago
You're free to call JS' window.close();
via the JS player
Is there a way it doing that from within love2d? I feel like it'd make the most sense for love.event.quit() to call the window.close; function but I'm not sure how hard that would be to do.
Got that working but window.close(); only works if the current tab was opened via the same script (eg using window.open();), so I guess there isn't really a way for love.js to implment the love.event.quite function properly
This works for me on Opera GX, but not on Chrome:
window.open('', '_self', '');
window.close();
Calling love.event.quit() or love.event.quit("restart") causes love.js to crash. Ideally it should close the tab similar to how native love2d closes the game window.