From f9f50cd5628a4175603f46889e2485738ee112e9 Mon Sep 17 00:00:00 2001 From: Matthew Welch Date: Mon, 25 Jan 2021 20:39:52 -0800 Subject: [PATCH] Added confirmations when opening/closing files If current file has unsaved changes it will ask for permission before opening or closing --- src/editor.html | 42 ++++++++++++++++ src/index.ts | 69 +++++++++++++++++--------- src/js/editor.ts | 124 ++++++++++++++++++++++++++++++++++++++++++++--- src/js/splash.ts | 4 +- 4 files changed, 206 insertions(+), 33 deletions(-) diff --git a/src/editor.html b/src/editor.html index 39525af..be7cd73 100644 --- a/src/editor.html +++ b/src/editor.html @@ -80,6 +80,48 @@ + + + + + +