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 2cfb6608e5
commit 550811adfd

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