explicit ws debug

master
Bel LaPointe 2023-04-09 11:57:45 -06:00
parent 39f6bc8ed9
commit fb5da88774
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}