jupyterlab-emrys
Version:
A computational environment for Jupyter. Powered by Emrys
17 lines (16 loc) • 460 B
JavaScript
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
;
/**
* The main extension.
*/
exports.mainExtension = {
id: 'jupyter.extensions.main',
activate: function (app) {
window.onbeforeunload = function (event) {
var msg = 'Are you sure you want to exit JupyterLab?';
msg += '\nAny unsaved changes will be lost.';
return msg;
};
}
};