mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-03 19:24:29 +02:00
Resolves #993 -- warn on before unloading
This commit is contained in:
parent
d9fe304038
commit
be58befe52
5 changed files with 26 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue