diff --git a/htagweb/runners.py b/htagweb/runners.py index 972c6ee..27151a1 100644 --- a/htagweb/runners.py +++ b/htagweb/runners.py @@ -290,8 +290,6 @@ async def handle(self, request, """ % locals() else: # interactions use WS - protocol = "wss" if (request.url.scheme == "https") else "ws" - js = """%(jslib)s async function interact( o ) { @@ -303,7 +301,7 @@ async def handle(self, request, let retryms=500; function connect() { - _WS_= new WebSocket("%(protocol)s://"+location.host+"/_/%(fqn)s%(pparano)s"); + _WS_= new WebSocket("//"+location.host+"/_/%(fqn)s%(pparano)s"); _WS_.onopen=function(evt) { console.log("** WS connected") document.body.classList.remove("htagoff");