diff --git a/src/Shell.ts b/src/Shell.ts index 9d3785cd..4e297268 100644 --- a/src/Shell.ts +++ b/src/Shell.ts @@ -369,7 +369,8 @@ export class Shell { terminalBlock.fullscreenEvent.on(onFullScreen); terminalBlock.clearEvent.on(onClear); this.addItem(terminalBlock); - this._activeItem.dispatch(terminalBlock); + if (!activeIframeBlock) + this._activeItem.dispatch(terminalBlock); }; terminalTaskQueue.queue(() => addTerminalBlock()); },