Remove browser references from common/public

This commit is contained in:
Daniel Imms
2021-07-22 14:36:45 -07:00
parent d3e42e342d
commit a5c6252ff5
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { IBuffer as IBufferApi, IBufferNamespace as IBufferNamespaceApi } from 'xterm';
import { BufferApiView } from 'common/public/BufferApiView';
import { IEvent, EventEmitter } from 'common/EventEmitter';
import { ITerminal } from 'browser/Types';
import { CoreTerminal } from 'common/CoreTerminal';
export class BufferNamespaceApi implements IBufferNamespaceApi {
private _normal: BufferApiView;
@@ -9,7 +9,7 @@ export class BufferNamespaceApi implements IBufferNamespaceApi {
private _onBufferChange = new EventEmitter<IBufferApi>();
public get onBufferChange(): IEvent<IBufferApi> { return this._onBufferChange.event; }
constructor(private _core: ITerminal) {
constructor(private _core: CoreTerminal) {
this._normal = new BufferApiView(this._core.buffers.normal, 'normal');
this._alternate = new BufferApiView(this._core.buffers.alt, 'alternate');
this._core.buffers.onBufferActivate(() => this._onBufferChange.fire(this.active));