- Setup custom service
- Name: owa
- URL: https://your.domain.com/owa/
- Logo: http://vle.hollyhallacademy.co.uk/pluginfile.php/4865/block_html/content/OWA.png (for example)
- open Advanced. the following code did it for me:
function checkUnread() {
var e = $('#_ariaId_40 span._n_28').text();
updateBadge(e);
}
function updateBadge(e) {
e >= 1 ? document.title = "(" + e + ") " + originalTitle : document.title = originalTitle
}
var originalTitle = document.title;
setInterval(checkUnread, 3000);
This should be more universal: