mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Radical JS runtime overhaul. New @wailsio/runtime package
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user