Dump notification hash to console.
[Sone.git] / src / main / resources / static / javascript / sone.js
index 591afa0..78d68f1 100644 (file)
@@ -1200,6 +1200,10 @@ function getStatus() {
                        if (!notLoggedIn) {
                                showOfflineMarker(!online);
                        }
+                       if (data.notificationHash != getNotificationHash()) {
+                               console.log("Old hash: ", getNotificationHash(), ", new hash: ", data.notificationHash);
+                               setNotificationHash(data.notificationHash);
+                       }
                        /* search for removed notifications. */
                        $("#sone #notification-area .notification").each(function() {
                                notificationId = $(this).attr("id");