fix for #13
This commit is contained in:
parent
6c3da63c33
commit
b4a2a5909f
1 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue