Skip to content

Commit

Permalink
feat: prevent to navigate away and loose the current scoresheet
Browse files Browse the repository at this point in the history
  • Loading branch information
bdelbosc committed Aug 15, 2020
1 parent 847290b commit 30b7cdc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,11 @@
if (!user.isCompleted()) userEdit();
else if (!beer.isCompleted()) beerEdit();
else evaluationEdit();
});
window.onbeforeunload = function() {
return "";
}
});
</script>


Expand Down

0 comments on commit 30b7cdc

Please sign in to comment.