- commit
- d215c469a86aa922ef945f65fb96412fdfb774ca
- parent
- 67cc056da1a84168e4eafe1eb9fd11248918fe9f
- author
- Dami <dami.etoile@gmail.com>
| M | internal/ | 4 | ++++ |
| M | internal/ | bin | |
| M | internal/ | 6 | ++++++ |
| M | internal/ | 2 | +- |
@@ -26,6 +26,10 @@
2626 {"src": "BASE/icon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any"},2727 {"src": "BASE/icon-mono.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "monochrome"}2828 ],29+ "screenshots": [30+ {"src": "BASE/screenshot-narrow.png", "sizes": "390x844", "type": "image/png", "form_factor": "narrow", "label": "Files on a phone"},31+ {"src": "BASE/screenshot-wide.png", "sizes": "1280x800", "type": "image/png", "form_factor": "wide", "label": "Repositories on a desktop"}32+ ],2933 "shortcuts": [3034 {"name": "Files", "url": "BASE/files", "icons": [{"src": "BASE/icon-192.png", "sizes": "192x192"}]},3135 {"name": "Repositories", "url": "BASE/repos", "icons": [{"src": "BASE/icon-192.png", "sizes": "192x192"}]},Binary file.
@@ -220,7 +220,7 @@ func (a *App) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
220220 _, _ = writer.Write(serviceWorkerJS)221221 return222222 }223- if png, ok := map[string][]byte{"/icon-192.png": icon192PNG, "/icon-512.png": icon512PNG, "/icon-maskable-512.png": iconMaskablePNG, "/apple-touch-icon.png": appleTouchIconPNG, "/badge-96.png": badgePNG}[request.URL.Path]; ok {223+ if png, ok := map[string][]byte{"/icon-192.png": icon192PNG, "/icon-512.png": icon512PNG, "/icon-maskable-512.png": iconMaskablePNG, "/apple-touch-icon.png": appleTouchIconPNG, "/badge-96.png": badgePNG, "/screenshot-narrow.png": screenshotNarrowPNG, "/screenshot-wide.png": screenshotWidePNG}[request.URL.Path]; ok {224224 writer.Header().Set("content-type", "image/png")225225 writer.Header().Set("cache-control", "public, max-age=86400")226226 _, _ = writer.Write(png)