diff --git a/src/js/wterminal.js b/src/js/wterminal.js index aa969aa..cff6d03 100644 --- a/src/js/wterminal.js +++ b/src/js/wterminal.js @@ -197,10 +197,11 @@ class WTerminal { }; constructor(name, locationId, options) { - // use name in static storage of terminals this.name = name; this.locationId = location; + // use name in static storage of terminals WTerminal.terminals[name] = this; + // Todo: use options variable ... //create terminal elements const container = WTerminal.createElement('div', { class: WTerminal.CONTAINER_CLASS, title: "Terminal" }); @@ -281,7 +282,7 @@ class WTerminal { const btnClose = WTerminal.createElement('button', { title: "Close terminal" });//, "✖") btnClose.innerHTML = "✖"; - btnClose.onclick = (e) => this.terminalClose(); + btnClose.onclick = () => this.terminalClose(); this.onDocBodyKeyDown = function(event) { //this.printLn('keydown.code ' + event.code); //console.log('terminal keydown.code ' + event.code);