fix(push): remove monochrome Android badge icon
This commit is contained in:
parent
34b01758ef
commit
ad7b92503c
|
|
@ -1,8 +1,8 @@
|
||||||
const isLocalhost = self.location.hostname === "localhost" || self.location.hostname === "127.0.0.1";
|
const isLocalhost = self.location.hostname === "localhost" || self.location.hostname === "127.0.0.1";
|
||||||
|
|
||||||
if (!isLocalhost) {
|
if (!isLocalhost) {
|
||||||
const STATIC_CACHE = "construction-delivery-static-v94";
|
const STATIC_CACHE = "construction-delivery-static-v95";
|
||||||
const RUNTIME_CACHE = "construction-delivery-runtime-v94";
|
const RUNTIME_CACHE = "construction-delivery-runtime-v95";
|
||||||
const APP_SHELL_URLS = ["/", "/index.html", "/manifest.webmanifest", "/icons/icon-192.png", "/icons/icon-512.png"];
|
const APP_SHELL_URLS = ["/", "/index.html", "/manifest.webmanifest", "/icons/icon-192.png", "/icons/icon-512.png"];
|
||||||
|
|
||||||
self.addEventListener("install", (event) => {
|
self.addEventListener("install", (event) => {
|
||||||
|
|
@ -96,7 +96,6 @@ self.addEventListener("push", (event) => {
|
||||||
self.registration.showNotification(title || "Уведомление", {
|
self.registration.showNotification(title || "Уведомление", {
|
||||||
body: body || "",
|
body: body || "",
|
||||||
icon: "/icons/icon-512.png",
|
icon: "/icons/icon-512.png",
|
||||||
badge: "/icons/icon-512.png",
|
|
||||||
data: { url: url || "/dashboard" },
|
data: { url: url || "/dashboard" },
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue