Emscripten: Sync FS before closing the browser window
This commit is contained in:
@@ -177,7 +177,7 @@
|
||||
document.getElementById("title").innerHTML = "Thank you for playing!";
|
||||
document.getElementById("message").innerHTML = "We hope you enjoyed OpenTTD!<br/><br/>Reload your browser to restart the game.";
|
||||
|
||||
window.close('','_parent','');
|
||||
FS.syncfs(false, function (err) { window.close('','_parent',''); });
|
||||
},
|
||||
|
||||
onAbort: function() {
|
||||
|
||||
Reference in New Issue
Block a user