mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
Fixes bug that would show "null" as a message in the don't leave dialog
This commit is contained in:
parent
4ab4ee120e
commit
81a912fbb9
@ -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