fix(push): remove monochrome Android badge icon

This commit is contained in:
root 2026-08-06 11:28:53 +00:00
parent 34b01758ef
commit ad7b92503c
1 changed files with 2 additions and 3 deletions

View File

@ -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-v94";
const RUNTIME_CACHE = "construction-delivery-runtime-v94";
const STATIC_CACHE = "construction-delivery-static-v95";
const RUNTIME_CACHE = "construction-delivery-runtime-v95";
const APP_SHELL_URLS = ["/", "/index.html", "/manifest.webmanifest", "/icons/icon-192.png", "/icons/icon-512.png"];
self.addEventListener("install", (event) => {
@ -96,7 +96,6 @@ self.addEventListener("push", (event) => {
self.registration.showNotification(title || "Уведомление", {
body: body || "",
icon: "/icons/icon-512.png",
badge: "/icons/icon-512.png",
data: { url: url || "/dashboard" },
}),
);