From fb5da887741a5a06b3d406d7456546e54462938f Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Sun, 9 Apr 2023 11:57:45 -0600 Subject: [PATCH] explicit ws debug --- src/device/input/raw/ws.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device/input/raw/ws.go b/src/device/input/raw/ws.go index cc9548e..b69d680 100644 --- a/src/device/input/raw/ws.go +++ b/src/device/input/raw/ws.go @@ -16,6 +16,7 @@ import ( var ( FlagWSProxy = os.Getenv("RAW_WS_PROXY_URL") + FlagWSDebug = os.Getenv("RAW_WS_DEBUG") != "" ) type WS struct { @@ -105,7 +106,7 @@ var rootHTML string func (ws WS) serveIndex(w http.ResponseWriter, r *http.Request) error { v := rootHTML - if FlagDebug { + if FlagWSDebug { b, _ := os.ReadFile("src/device/input/raw/public/root.html") v = string(b) }