Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
fix(): title and window move fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marhi authored and jkuri committed Jun 5, 2017
1 parent 2a0c34c commit c66ae76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/window-top/window-top.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export class WindowTopComponent implements OnInit {

switchTab(e: MouseEvent, index: number): void {
e.preventDefault();
e.stopPropagation();

if (this.xterm.currentIndex === index) {
return;
Expand All @@ -84,7 +83,8 @@ export class WindowTopComponent implements OnInit {
}

parseTitle(title: string): string {
return title.trim();
let parsedTitle: string = title.trim();
return parsedTitle.length ? 'Shell' : parsedTitle;
}

close(): void {
Expand Down

0 comments on commit c66ae76

Please sign in to comment.