Hwaro::Models::PwaConfig
Inherits Reference / Object
PWA (Progressive Web App) configuration
Constants
VALID_STRATEGIES = ["cache-first", "network-first", "stale-while-revalidate"] of ::String
Constructors
new
SourceInstance methods
background_color
Sourcebackground_color=(background_color : String)
Sourcecache_strategy
Sourcecache_strategy=(cache_strategy : String)
Sourcedisplay
Sourcedisplay=(display : String)
Sourceenabled
Sourceenabled=(enabled : Bool)
Sourceicons
Sourceicons=(icons : Array(String))
Sourcename
Sourcename=(name : String | Nil)
Sourceoffline_page
Sourceoffline_page=(offline_page : String | Nil)
Sourceprecache_urls
Sourceprecache_urls=(precache_urls : Array(String))
Sourceshort_name
Sourceshort_name=(short_name : String | Nil)
Sourcestart_url
Sourcestart_url=(start_url : String)
Sourcetheme_color
Sourcetheme_color=(theme_color : String)
Source