Resolves #993 -- warn on before unloading

This commit is contained in:
Peter Cottle 2022-08-08 10:34:38 -06:00
parent d9fe304038
commit be58befe52
5 changed files with 26 additions and 2 deletions

View file

@ -75,6 +75,10 @@ var init = function() {
window.LocaleStore = LocaleStore;
window.LocaleActions = LocaleActions;
window.intl = intl;
$(window).on('beforeunload', function(e) {
return GlobalStateStore.getIsSolvingLevel() ? 'you have a level in progress' : null;
});
};
var vcsModeRefresh = function(eventData) {