Skip to content

Commit d3e5740

Browse files
committed
bah
1 parent ae73f0a commit d3e5740

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎v3/js/opt-frontend-common.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,13 +1041,13 @@ function genericOptFrontendReady() {
10411041
// still a bit flaky ... TODO: investigate :(
10421042
$(window).on('beforeunload', function(){
10431043
submitUpdateHistory('beforeunload');
1044-
return null; // so that no dialog is triggered
1044+
// don't return anything, or a modal dialog box might pop up
10451045
});
10461046

10471047
// just do this as well, even though it might be hella redundant
10481048
$(window).unload(function(){
10491049
submitUpdateHistory('unload');
1050-
return null; // so that no dialog is triggered
1050+
// don't return anything, or a modal dialog box might pop up
10511051
});
10521052

10531053
// periodically do submitUpdateHistory() to handle the case when

0 commit comments

Comments
 (0)