Add a cruddy handler for prompt when unload "unsaved changes" thing
This commit is contained in:
parent
dd76936478
commit
7b3ca422c0
@ -82,6 +82,9 @@ window.addEventListener("load", () => {
|
||||
reader.readAsDataURL(files[0]);
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener('beforeunload',
|
||||
e => e.returnValue = "Unsaved changes blah blah");
|
||||
});
|
||||
|
||||
function downloadFile(file, name) {
|
||||
|
Loading…
Reference in New Issue
Block a user