From: David ‘Bombe’ Roden Date: Thu, 24 Nov 2011 09:54:31 +0000 (+0100) Subject: Dump notification hash to console. X-Git-Tag: 0.7.5^2~4^2~6 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8b79b93bead78de036c5a8fa2e8964e4acde3d4f;p=Sone.git Dump notification hash to console. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 591afa0..78d68f1 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -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");