Dump notification hash to console.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 24 Nov 2011 09:54:31 +0000 (10:54 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 24 Nov 2011 09:54:31 +0000 (10:54 +0100)
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");