()
| 159 | } |
| 160 | |
| 161 | func (c *ClientImpl) getFaviconPath() string { |
| 162 | if c.StaticFS != nil { |
| 163 | faviconNames := []string{"favicon.ico", "favicon.png", "favicon.svg", "favicon.gif", "favicon.jpg"} |
| 164 | for _, name := range faviconNames { |
| 165 | if _, err := c.StaticFS.Open(name); err == nil { |
| 166 | return "/static/" + name |
| 167 | } |
| 168 | } |
| 169 | } |
| 170 | return "/wave-logo-256.png" |
| 171 | } |
| 172 | |
| 173 | func (c *ClientImpl) makeBackendOpts() *rpctypes.VDomBackendOpts { |
| 174 | appMeta := c.GetAppMeta() |