mirror of
https://github.com/yudai/gotty.git
synced 2026-03-06 22:00:17 +01:00
Rename TermXterm and TermHterm to Xterm and Hterm
This commit is contained in:
parent
70aaf33082
commit
27b6436196
7 changed files with 41 additions and 41 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { TermHterm } from "./hterm";
|
||||
import { TermXterm } from "./xterm";
|
||||
import { Hterm } from "./hterm";
|
||||
import { Xterm } from "./xterm";
|
||||
import { Terminal, WebTTY, protocols } from "./webtty";
|
||||
import { ConnectionFactory } from "./websocket";
|
||||
|
||||
|
|
@ -12,9 +12,9 @@ const elem = document.getElementById("terminal")
|
|||
if (elem !== null) {
|
||||
var term: Terminal;
|
||||
if (gotty_term == "hterm") {
|
||||
term = new TermHterm(elem);
|
||||
term = new Hterm(elem);
|
||||
} else {
|
||||
term = new TermXterm(elem);
|
||||
term = new Xterm(elem);
|
||||
}
|
||||
const httpsEnabled = window.location.protocol == "https:";
|
||||
const url = (httpsEnabled ? 'wss://' : 'ws://') + window.location.host + window.location.pathname + 'ws';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue