From 1ffe66f7e6e2b45cb9f6236e08e4809460c03099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Patr=C3=B3n=20G=C3=B3mez?= Date: Sun, 17 Oct 2021 10:21:28 +0200 Subject: [PATCH] Add favicon counter #728 --- index.html | 1 + src/pages/DashboardHome.vue | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/index.html b/index.html index cd5da9360..98e452f0e 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,7 @@ + Uptime Kuma diff --git a/src/pages/DashboardHome.vue b/src/pages/DashboardHome.vue index 9a9e2a828..0f881e9d9 100644 --- a/src/pages/DashboardHome.vue +++ b/src/pages/DashboardHome.vue @@ -103,6 +103,9 @@ export default { unknown: 0, pause: 0, }; + let favicon = new Favico({ + animation:'pop' + }); for (let monitorID in this.$root.monitorList) { let beat = this.$root.lastHeartbeatList[monitorID]; @@ -125,6 +128,7 @@ export default { } } + favicon.badge(result.down); return result; },