working on #13
This commit is contained in:
parent
00eb4f80bc
commit
6c3da63c33
1 changed files with 9 additions and 3 deletions
12
src/index.ts
12
src/index.ts
|
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue