Removed global documentCreated

This commit is contained in:
unsettledgames
2021-07-23 19:05:33 +02:00
parent 404b1c56c1
commit da7ae65ead
8 changed files with 17 additions and 16 deletions

View File

@@ -42,7 +42,7 @@ const TopMenuModule = (() => {
break;
case 'Exit':
//if a document exists, make sure they want to delete it
if (documentCreated) {
if (Startup.documentCreated()) {
//ask user if they want to leave
if (confirm('Exiting will discard your current pixel. Are you sure you want to do that?'))
//skip onbeforeunload prompt