Skip to content

Commit

Permalink
Save when iOS app moves to background and show menu
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvoorneveld committed Feb 6, 2022
1 parent 0d009c6 commit 847cda6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ if (gl &&
loaded = false;
};

window.addEventListener('appMovedToBackground', () => {
save();
menu.show();
});

loader.setFinishCallback(() => {
requestAnimationFrame(loop);

Expand Down

0 comments on commit 847cda6

Please sign in to comment.