diff --git a/client/js/vue.js b/client/js/vue.js index 3467b3c4..3b55727d 100644 --- a/client/js/vue.js +++ b/client/js/vue.js @@ -100,6 +100,14 @@ store.watch( (_, getters) => getters.highlightCount, (highlightCount) => { favicon.setAttribute("href", highlightCount > 0 ? faviconAlerted : faviconNormal); + + if (navigator.setAppBadge) { + if (highlightCount > 0) { + navigator.setAppBadge(highlightCount); + } else { + navigator.clearAppBadge(); + } + } } );