fix: ttyd https frame (#7548)

This commit is contained in:
onewe 2021-07-28 13:40:36 +08:00 committed by GitHub
parent 1214d8dc98
commit b01a5f922a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@
<iframe id="terminal" style="width: 100%; min-height: 500px; border: none; border-radius: 3px;"></iframe>
</div>
<script type="text/javascript">
document.getElementById("terminal").src = "http://" + window.location.hostname + ":7681";
document.getElementById("terminal").src = window.location.protocol + "//" + window.location.hostname + ":7681";
document.getElementById("terminal").height = document.documentElement.clientHeight;
window.onresize = function(){
document.getElementById("terminal").height = document.documentElement.clientHeight;