luci-app-ttyd: fix luci https support

This commit is contained in:
LEAN-ESX 2019-10-20 06:31:38 -07:00
parent 966951a170
commit 858d11ebc2
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for ttyd
LUCI_DEPENDS:=+ttyd
LUCI_PKGARCH:=all
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_RELEASE:=2
include $(TOPDIR)/feeds/luci/luci.mk

View File

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