Radical JS runtime overhaul. New @wailsio/runtime package

This commit is contained in:
Lea Anthony
2023-12-28 19:18:26 +11:00
parent d1255d3a9d
commit b08126d745
61 changed files with 1809 additions and 4726 deletions
@@ -6,6 +6,7 @@ import (
const (
SystemIsDarkMode = 0
Environment = 1
)
var systemMethodNames = map[int]string{
@@ -17,6 +18,8 @@ func (m *MessageProcessor) processSystemMethod(method int, rw http.ResponseWrite
switch method {
case SystemIsDarkMode:
m.json(rw, globalApplication.IsDarkMode())
case Environment:
m.json(rw, globalApplication.Environment())
default:
m.httpError(rw, "Unknown system method: %d", method)
}