diff --git a/src/templates/layout.pug b/src/templates/layout.pug index df22bd7..11f6d32 100644 --- a/src/templates/layout.pug +++ b/src/templates/layout.pug @@ -321,6 +321,10 @@ html(lang="en") {% if current_user.is_authenticated %} getNotificationsLoop(); // Check for new notifications in the background + $('body').on('pillar:notifications-total-updated', function(e, notifications_total) { + updateTitle(notifications_total, page_title); + }); + // Resize #notifications and change overflow for scrollbars $(window).on("resize", function() { notificationsResize(); }); {% endif %}