2023-12-09 22:59:31 +00:00
|
|
|
//go:build !js
|
2019-06-27 05:44:08 +00:00
|
|
|
// +build !js
|
|
|
|
|
|
|
|
package wasm
|
|
|
|
|
2019-06-27 22:59:18 +00:00
|
|
|
// StorageKeys returns the list of localStorage keys matching a prefix.
|
|
|
|
// This is a no-op when not in wasm.
|
|
|
|
func StorageKeys(prefix string) []string {
|
|
|
|
return []string{}
|
|
|
|
}
|
|
|
|
|
2019-06-27 05:44:08 +00:00
|
|
|
// SetSession sets a binary value on sessionStorage.
|
|
|
|
// This is a no-op when not in wasm.
|
|
|
|
func SetSession(key string, value string) {
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetSession retrieves a binary value from sessionStorage.
|
|
|
|
// This is a no-op when not in wasm.
|
|
|
|
func GetSession(key string) (string, bool) {
|
|
|
|
return "", false
|
|
|
|
}
|