mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Merge pull request #8176 from gilbertw/master
Fixes bug that would show "null" as the reason in the don't leave dialog
This commit is contained in:
commit
2f2a0fcbcb
@ -301,9 +301,8 @@ define(function (require) {
|
||||
return "Unsaved changes will be lost.";
|
||||
}
|
||||
}
|
||||
// Null is the *only* return value that will make the browser not
|
||||
// pop up the "don't leave" dialog.
|
||||
return null;
|
||||
// IE treats null as a string. Instead just return which will avoid the dialog.
|
||||
return;
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user