apply attach changes to demo
This commit is contained in:
+1
-4
@@ -27,7 +27,6 @@ declare let window: IWindowWithTerminal;
|
|||||||
Terminal.applyAddon(fit);
|
Terminal.applyAddon(fit);
|
||||||
|
|
||||||
let term;
|
let term;
|
||||||
let attachAddon: AttachAddon;
|
|
||||||
let searchAddon: SearchAddon;
|
let searchAddon: SearchAddon;
|
||||||
let protocol;
|
let protocol;
|
||||||
let socketURL;
|
let socketURL;
|
||||||
@@ -90,8 +89,6 @@ function createTerminal(): void {
|
|||||||
// Load addons
|
// Load addons
|
||||||
const typedTerm = term as TerminalType;
|
const typedTerm = term as TerminalType;
|
||||||
typedTerm.loadAddon(new WebLinksAddon());
|
typedTerm.loadAddon(new WebLinksAddon());
|
||||||
attachAddon = new AttachAddon();
|
|
||||||
typedTerm.loadAddon(attachAddon);
|
|
||||||
searchAddon = new SearchAddon();
|
searchAddon = new SearchAddon();
|
||||||
typedTerm.loadAddon(searchAddon);
|
typedTerm.loadAddon(searchAddon);
|
||||||
|
|
||||||
@@ -152,7 +149,7 @@ function createTerminal(): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function runRealTerminal(): void {
|
function runRealTerminal(): void {
|
||||||
attachAddon.attach(socket);
|
term.loadAddon(new AttachAddon(socket));
|
||||||
term._initialized = true;
|
term._initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user