~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/socialweb-computer-console

console.socialweb.computer: kcp, kubectl and ssh compiled to wasm in a browser tab with a terminal; a kcp fork

0
0
main
13 lines · 383 B Raw History
//go:build js && wasm

package storage

import "syscall/js"

// debugTimingsEnabled uses a JS global because Go's js/wasm port does not
// expose the host environment. Hosts set
// globalThis.__kcpStorageDebug = true before starting the module.
func debugTimingsEnabled() bool {
	value := js.Global().Get("__kcpStorageDebug")
	return value.Type() == js.TypeBoolean && value.Bool()
}