Browse Source

Add favicon counter #728

pull/732/head
Daniel Patrón Gómez 4 years ago
parent
commit
1ffe66f7e6
  1. 1
      index.html
  2. 4
      src/pages/DashboardHome.vue

1
index.html

@ -8,6 +8,7 @@
<link rel="manifest" href="manifest.json" /> <link rel="manifest" href="manifest.json" />
<meta name="theme-color" id="theme-color" content="" /> <meta name="theme-color" id="theme-color" content="" />
<meta name="description" content="Uptime Kuma monitoring tool" /> <meta name="description" content="Uptime Kuma monitoring tool" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/favico.js/0.3.10/favico.min.js" integrity="sha512-d9sMcIBjQTs74UtVxBT8z7b4NRFZrwD2rn5VJe/pBxjwMmxOuBDmYFzLmwssH9AUIhFKtWzoeZgDIp6Yc0g+jw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<title>Uptime Kuma</title> <title>Uptime Kuma</title>
</head> </head>
<body> <body>

4
src/pages/DashboardHome.vue

@ -103,6 +103,9 @@ export default {
unknown: 0, unknown: 0,
pause: 0, pause: 0,
}; };
let favicon = new Favico({
animation:'pop'
});
for (let monitorID in this.$root.monitorList) { for (let monitorID in this.$root.monitorList) {
let beat = this.$root.lastHeartbeatList[monitorID]; let beat = this.$root.lastHeartbeatList[monitorID];
@ -125,6 +128,7 @@ export default {
} }
} }
favicon.badge(result.down);
return result; return result;
}, },

Loading…
Cancel
Save