From 9e4ce20c969b807bd0052bc21d40f58847ab8961 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 6 Aug 2026 10:15:42 +0000 Subject: [PATCH] fix(push): use SuperSam application icon in notifications --- public/service-worker.js | 8 ++++---- scripts/push_sender.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/service-worker.js b/public/service-worker.js index 8447e47..d327039 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -1,8 +1,8 @@ const isLocalhost = self.location.hostname === "localhost" || self.location.hostname === "127.0.0.1"; if (!isLocalhost) { - const STATIC_CACHE = "construction-delivery-static-v90"; - const RUNTIME_CACHE = "construction-delivery-runtime-v90"; + const STATIC_CACHE = "construction-delivery-static-v91"; + const RUNTIME_CACHE = "construction-delivery-runtime-v91"; const APP_SHELL_URLS = ["/", "/index.html", "/manifest.webmanifest", "/icons/icon-192.png", "/icons/icon-512.png"]; self.addEventListener("install", (event) => { @@ -95,8 +95,8 @@ self.addEventListener("push", (event) => { event.waitUntil( self.registration.showNotification(title || "Уведомление", { body: body || "", - icon: "/icons/manifest-192.png", - badge: "/icons/manifest-192.png", + icon: "/icons/icon-512.png", + badge: "/icons/icon-512.png", data: { url: url || "/dashboard" }, }), ); diff --git a/scripts/push_sender.py b/scripts/push_sender.py index 4db46e8..0b3479c 100755 --- a/scripts/push_sender.py +++ b/scripts/push_sender.py @@ -111,8 +111,8 @@ def build_payload(title, body, url, order_group_id=None): "body": body, "url": url, "order_group_id": order_group_id, - "icon": "/icons/manifest-192.png", - "badge": "/icons/manifest-192.png", + "icon": "/icons/icon-512.png", + "badge": "/icons/icon-512.png", "vibrate": [200, 100, 200], })