diff --git a/js/main.js b/js/main.js index 5731a49..8153ddb 100644 --- a/js/main.js +++ b/js/main.js @@ -320,6 +320,11 @@ if (gl && loaded = false; }; + window.addEventListener('appMovedToBackground', () => { + save(); + menu.show(); + }); + loader.setFinishCallback(() => { requestAnimationFrame(loop);