5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-05 11:51:47 +08:00
wails/v3/pkg/application/messageprocessor_system.go

19 lines
396 B
Go

package application
import (
"net/http"
)
func (m *MessageProcessor) processSystemMethod(method string, rw http.ResponseWriter, r *http.Request, window *WebviewWindow, params QueryParams) {
switch method {
case "IsDarkMode":
m.json(rw, globalApplication.IsDarkMode())
default:
m.httpError(rw, "Unknown system method: %s", method)
}
m.Info("Runtime:", "method", "System."+method)
}