less warnings when building

This commit is contained in:
2023-08-06 10:31:47 +02:00
parent b57bec7919
commit b7d38af0d3
4 changed files with 9 additions and 10 deletions

View File

@ -726,6 +726,7 @@ window.addEventListener('mousemove', reportMouseCoordinates);
// When the user leaves the page, all the universes should be saved in the localStorage
window.addEventListener("beforeunload", () => {
// @ts-ignore
event.preventDefault();
// Iterate over all local files and set the candidate to the committed
app.currentFile().candidate = app.view.state.doc.toString();