MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getFaviconPath

Method getFaviconPath

tsunami/engine/clientimpl.go:161–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159}
160
161func (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
173func (c *ClientImpl) makeBackendOpts() *rpctypes.VDomBackendOpts {
174 appMeta := c.GetAppMeta()

Callers 1

makeBackendOptsMethod · 0.95

Calls 1

OpenMethod · 0.80

Tested by

no test coverage detected