Skip to content

Commit

Permalink
apply attach changes to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jerch committed May 12, 2019
1 parent 031a30b commit 6fd5cdd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions demo/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ declare let window: IWindowWithTerminal;
Terminal.applyAddon(fit);

let term;
let attachAddon: AttachAddon;
let searchAddon: SearchAddon;
let protocol;
let socketURL;
Expand Down Expand Up @@ -90,8 +89,6 @@ function createTerminal(): void {
// Load addons
const typedTerm = term as TerminalType;
typedTerm.loadAddon(new WebLinksAddon());
attachAddon = new AttachAddon();
typedTerm.loadAddon(attachAddon);
searchAddon = new SearchAddon();
typedTerm.loadAddon(searchAddon);

Expand Down Expand Up @@ -152,7 +149,7 @@ function createTerminal(): void {
}

function runRealTerminal(): void {
attachAddon.attach(socket);
term.loadAddon(new AttachAddon(socket));
term._initialized = true;
}

Expand Down

0 comments on commit 6fd5cdd

Please sign in to comment.