Skip to content
Snippets Groups Projects
Commit 5fb1ecb5 authored by Michael Long's avatar Michael Long
Browse files

fix ftelnet size

parent bcf923d9
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<script id="fTelnetScript" src="<?xjs write(get_url()); ?>"></script> <script id="fTelnetScript" src="<?xjs write(get_url()); ?>"></script>
<script> <script>
window.addEventListener('load', (event) => {
var wsp = <?xjs write(settings.wsp || GetWebSocketServicePort()); ?>; var wsp = <?xjs write(settings.wsp || GetWebSocketServicePort()); ?>;
var wssp = <?xjs write(settings.wssp || GetWebSocketServicePort(true)); ?>; var wssp = <?xjs write(settings.wssp || GetWebSocketServicePort(true)); ?>;
var Options = new fTelnetOptions(); var Options = new fTelnetOptions();
...@@ -44,6 +45,7 @@ ...@@ -44,6 +45,7 @@
fTelnet.Connect(); fTelnet.Connect();
}); });
} }
});
</script> </script>
<?xjs } ?> <?xjs } ?>
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
<script id="fTelnetScript" src="<?xjs write(get_url()); ?>"></script> <script id="fTelnetScript" src="<?xjs write(get_url()); ?>"></script>
<script type="text/javascript"> <script type="text/javascript">
window.addEventListener('load', (event) => {
var wsp = <?xjs write(settings.wsp || GetWebSocketServicePort()); ?>; var wsp = <?xjs write(settings.wsp || GetWebSocketServicePort()); ?>;
var wssp = <?xjs write(settings.wssp || GetWebSocketServicePort(true)); ?>; var wssp = <?xjs write(settings.wssp || GetWebSocketServicePort(true)); ?>;
var Options = new fTelnetOptions(); var Options = new fTelnetOptions();
...@@ -66,6 +67,7 @@ ...@@ -66,6 +67,7 @@
fTelnet.OnConnectionClose = function () { fTelnet.OnConnectionClose = function () {
window.location.reload(); window.location.reload();
}; };
});
async function launchXtrn(code) { async function launchXtrn(code) {
await v4_get('./api/system.ssjs?call=set-xtrn-intent&code=' + code); await v4_get('./api/system.ssjs?call=set-xtrn-intent&code=' + code);
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
<script id="fTelnetScript" src="<?xjs write(get_url()); ?>"></script> <script id="fTelnetScript" src="<?xjs write(get_url()); ?>"></script>
<script type="text/javascript"> <script type="text/javascript">
window.addEventListener('load', (event) => {
var wsp = <?xjs write(settings.wsp || GetWebSocketServicePort()); ?>; var wsp = <?xjs write(settings.wsp || GetWebSocketServicePort()); ?>;
var wssp = <?xjs write(settings.wssp || GetWebSocketServicePort(true)); ?>; var wssp = <?xjs write(settings.wssp || GetWebSocketServicePort(true)); ?>;
var Options = new fTelnetOptions(); var Options = new fTelnetOptions();
...@@ -92,6 +93,7 @@ ...@@ -92,6 +93,7 @@
fTelnet.OnConnectionClose = function () { fTelnet.OnConnectionClose = function () {
window.location.reload(); window.location.reload();
}; };
});
async function launchXtrn() { async function launchXtrn() {
var code = event.srcElement.id; var code = event.srcElement.id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment