This commit is contained in:
Tim Paine 2018-05-17 17:55:05 -04:00
parent 6c3da63c33
commit b4a2a5909f

View file

@ -152,13 +152,11 @@ function activate(app: JupyterLab, docManager: IDocumentManager, palette: IComma
registerSite(app, palette, welcome);
}
let started = true;
if (welcome) {
app.restored.then((layout, start=started) => {
if(start){
app.restored.then(() => {
if(!localStorage.getItem('jupyterlab_iframe_welcome')) {
localStorage.setItem('jupyterlab_iframe_welcome', 'false');
app.commands.execute('iframe:open-' + welcome);
start = false;
}
});
}
@ -176,5 +174,4 @@ function activate(app: JupyterLab, docManager: IDocumentManager, palette: IComma
console.log('JupyterLab extension jupyterlab_iframe is activated!');
};
export default extension;