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.";
|
return "Unsaved changes will be lost.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Null is the *only* return value that will make the browser not
|
// IE treats null as a string. Instead just return which will avoid the dialog.
|
||||||
// pop up the "don't leave" dialog.
|
return;
|
||||||
return null;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user