Kaynağa Gözat

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

apply all options to initial jlab instance
Steven Silvester 5 yıl önce
ebeveyn
işleme
d42744013f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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);