Add a cruddy handler for prompt when unload "unsaved changes" thing

This commit is contained in:
Adam Goldsmith 2017-10-11 22:55:45 -04:00
parent dd76936478
commit 7b3ca422c0

View File

@ -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) {