working on #13

This commit is contained in:
Tim Paine 2018-05-15 18:13:41 -04:00
parent 00eb4f80bc
commit 6c3da63c33

View file

@ -148,12 +148,18 @@ function activate(app: JupyterLab, docManager: IDocumentManager, palette: IComma
registerSite(app, palette, site);
}
if (!welcome_included){
if (!welcome_included) {
registerSite(app, palette, welcome);
}
let started = true;
if (welcome) {
app.restored.then(() => {
app.commands.execute('iframe:open-' + welcome);
app.restored.then((layout, start=started) => {
if(start){
app.commands.execute('iframe:open-' + welcome);
start = false;
}
});
}