Skip to content

Commit daafd4f

Browse files
morotenEdSchouten
authored andcommitted
Fix the web site favicon
It has been broken since 2021-09-09, commit c4d0a62. - The wrong base64 encoding was applied. - Use "icon" instead of deprecated "shurtcut icon", see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel#icon
1 parent 881fd82 commit daafd4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/bb_browser/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func main() {
130130
routePrefix += "/"
131131
}
132132

133-
faviconURL := template.URL("data:image/png;base64," + base64.URLEncoding.EncodeToString(favicon))
133+
faviconURL := template.URL("data:image/png;base64," + base64.StdEncoding.EncodeToString(favicon))
134134
templates, err := template.New("templates").Funcs(template.FuncMap{
135135
"basename": path.Base,
136136
"favicon_url": func() template.URL { return faviconURL },

cmd/bb_browser/templates/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Buildbarn Browser</title>
5-
<link href="{{favicon_url}}" rel="shortcut icon">
5+
<link href="{{favicon_url}}" rel="icon">
66
<style>{{stylesheet}}</style>
77
</head>
88
<body>

0 commit comments

Comments
 (0)