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