瀏覽代碼

Merge pull request #7251 from meinstein/apply-options-to-initial-instance

apply all options to initial jlab instance
Steven Silvester 5 年之前
父節點
當前提交
d42744013f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/application/src/lab.ts

+ 1 - 1
packages/application/src/lab.ts

@@ -25,7 +25,7 @@ export class JupyterLab extends JupyterFrontEnd<ILabShell> {
    * Construct a new JupyterLab object.
    */
   constructor(options: JupyterLab.IOptions = { shell: new LabShell() }) {
-    super({ shell: options.shell || new LabShell() });
+    super({ ...options, shell: options.shell || new LabShell() });
     this.restored = this.shell.restored
       .then(() => undefined)
       .catch(() => undefined);