mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +00:00
29 lines
449 B
Go
29 lines
449 B
Go
//go:build js && wasm
|
|||
|
|
// +build js,wasm
|
||
|
|
|
||
|
|
package mdw
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/donseba/go-htmx"
|
||
|
|
"github.com/labstack/echo/v4"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Browser struct {
|
||
|
|
echo.Context
|
||
|
|
isMobile bool
|
||
|
|
userAgent string
|
||
|
|
width int
|
||
|
|
olc string
|
||
|
|
ksuid string
|
||
|
|
|
||
|
|
// HTMX Specific
|
||
|
|
htmx *htmx.HTMX
|
||
|
|
|
||
|
|
// WebAPIs
|
||
|
|
credentials CredentialsAPI
|
||
|
|
indexedDB IndexedDBAPI
|
||
|
|
localStorage LocalStorageAPI
|
||
|
|
push PushAPI
|
||
|
|
sessionStorage SessionStorageAPI
|
||
|
|
}
|