mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Store theme in right place
This commit is contained in:
+1
-1
@@ -696,6 +696,7 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
|
||||
this.element.appendChild(fragment);
|
||||
|
||||
this._setupRenderer();
|
||||
this._theme = this.options.theme;
|
||||
this.options.theme = null;
|
||||
this.viewport = new Viewport(this, this._viewportElement, this._viewportScrollArea, this.charMeasure);
|
||||
this.viewport.onThemeChanged(this.renderer.colorManager.colors);
|
||||
@@ -758,7 +759,6 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
|
||||
case 'dom': this.renderer = new DomRenderer(this, this.options.theme); break;
|
||||
default: throw new Error(`Unrecognized rendererType "${this.options.rendererType}"`);
|
||||
}
|
||||
this._theme = this.options.theme;
|
||||
this.register(this.renderer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user