Update kjol website with C documentation
This commit is contained in:
@@ -37,5 +37,17 @@ func main() {
|
||||
// boot script put it there before the first paint — so this is not what makes the
|
||||
// page dark; it is what makes the SWITCH know which way it is pointing, and what
|
||||
// keeps the page following the OS if the user never touched the switch.
|
||||
//
|
||||
// The server rendered this button not knowing the theme (it cannot: the preference is
|
||||
// in localStorage), so it drew the wrong icon. Init's signal write re-renders it, and
|
||||
// the reconciler patches the one button. That mismatch is inherent, not a bug — it is
|
||||
// the same reason the boot script has to exist at all.
|
||||
//
|
||||
// This line used to be unreachable: Hydrate ended in a `select {}` and never returned.
|
||||
// See wasmruntime.Wait.
|
||||
app.Theme.Init()
|
||||
|
||||
// Last line, always: a Go/wasm main that returns is a dead program, and every event
|
||||
// handler on the page dies with it.
|
||||
wasmruntime.Wait()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user