pre-refactor
This commit is contained in:
+1
-1
@@ -197,7 +197,7 @@ def spa_page(path=""):
|
||||
scheme = "wss" if request.is_secure else "ws"
|
||||
ws_url = f"{scheme}://{request.host}/ws"
|
||||
html = (SPA_DIR / "index.html").read_text()
|
||||
return html.replace("__WS_URL__", ws_url)
|
||||
return html.replace("__WS_URL_PLACEHOLDER__", ws_url)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user