explicit ws debug
parent
39f6bc8ed9
commit
fb5da88774
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue