mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Favicon matches the app icon
The white plane in a blue ring on the dark rounded square, tuned to read at 16 px, instead of the plane emoji (which looked different everywhere). Adds favicon.ico (16/32/48) for browsers and tools that ask for it, busts the cached SVG with ?v=2, and keeps it with the offline page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
291990412e
commit
ec0f43019f
8 files changed
+21
-8
No files matched your search
@@ -24,7 +24,7 @@ const SHORTCUTS = { "/go/log-flight": "flight_logs", "/go/report-squawk": "squaw
|
||||
// A proxy in front of the app (Traefik, Authentik) answers these when the app
|
||||
// itself can't be reached: treat them like no connection.
|
||||
const UNREACHABLE = [ 502, 503, 504 ]
|
||||
const SHELL = [ "/offline", "/offline.js", "/icon.svg", "/icon-192.png" ]
|
||||
const SHELL = [ "/offline", "/offline.js", "/icon.svg", "/icon-192.png", "/favicon.svg" ]
|
||||
|
||||
self.addEventListener("install", (event) => {
|
||||
event.waitUntil(caches.open(SHELL_CACHE).then((cache) => cache.addAll(SHELL)).then(() => self.skipWaiting()))
|
||||
|
||||
Reference in new issue
Block a user