Skip to content

Node.js based forum software built for the modern web

added a call to check for new notifications on load

Julian Lam7321088ac56f
diff --git a/public/templates/footer.tpl b/public/templates/footer.tpl
index 15b6ce108c..3f905de329 100644
--- a/public/templates/footer.tpl
+++ b/public/templates/footer.tpl
@@ -107,7 +107,6 @@
}
})
socket.on('api:notifications.get', function(data) {
- console.log(data);
var notifFrag = document.createDocumentFragment(),
notifEl = document.createElement('li'),
numRead = data.read.length,
@@ -138,6 +137,7 @@
if ((counts.unread + counts.read) > 0) notifIcon.className = 'icon-circle active';
else notifIcon.className = 'icon-circle-blank';
});
+ socket.emit('api:notifications.counts');
}());
</script>
<!-- END Forum Info -->