Fix indent

This commit is contained in:
iliajie
2022-10-25 13:06:52 +03:00
parent bf46fe67b8
commit 8b60a24251

View File

@@ -114,14 +114,14 @@ sleep(1);
my $url = "wss://".$ENV{'HTTP_HOST'}.$wspath;
print "<div id=\"terminal\" $termopts->{'ContainerStyle'}></div>\n";
my $term_script = <<EOF;
var term = new Terminal($termopts->{'Options'}),
socket = new WebSocket('$url', 'binary'),
attachAddon = new AttachAddon.AttachAddon(socket);
term.loadAddon(attachAddon);
$termopts->{'FitAddonLoad'}
term.open(document.getElementById('terminal'));
$termopts->{'FitAddonAdjust'}
term.focus();
var term = new Terminal($termopts->{'Options'}),
socket = new WebSocket('$url', 'binary'),
attachAddon = new AttachAddon.AttachAddon(socket);
term.loadAddon(attachAddon);
$termopts->{'FitAddonLoad'}
term.open(document.getElementById('terminal'));
$termopts->{'FitAddonAdjust'}
term.focus();
EOF
# Return inline script data depending on type