Documentation ¶
Index ¶
- Constants
- Variables
- func Head(o ...seed.Option) seed.Option
- func Install() client.Script
- func Launch() client.Script
- func OnUpdateFound(do client.Script) seed.Option
- func Reset() client.Script
- func Restart() client.Script
- func SetColor(col color.Color) seed.Option
- func SetIcon(icon string) seed.Option
- func SetLoadingPage(p page.Page) seed.Option
- func Update() client.Script
- type App
Constants ¶
View Source
const CSS = `` /* 4381-byte string literal not displayed */
Variables ¶
View Source
var Installable = &clientside.Bool{
Name: "app.installable",
}
Installable is true when the app can be installed (that is when the OS has granted the app a beforeinstallprompt event).
View Source
var Standalone = &clientside.Bool{ Name: "app.standalone", Value: js.NewValue(`(document.fullscreen || (window.matchMedia('(display-mode: standalone)').matches) || (window.navigator.standalone) || window.name == 'installed')`), }
Standalone is true when the app is running from an installed instance.
Functions ¶
func SetLoadingPage ¶
SetLoadingPage sets the loading page of this app.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.