Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

added comment to notify module #230

Benjamina300bce34e91
diff --git a/web/js/notifications/wv.notifications.ui.js b/web/js/notifications/wv.notifications.ui.js
index b3271eb77..9cbe3a20b 100644
--- a/web/js/notifications/wv.notifications.ui.js
+++ b/web/js/notifications/wv.notifications.ui.js
@@ -377,7 +377,18 @@ wv.notifications.ui = wv.notifications.ui || function(models, config) {
}
return $ul;
};
-
+ /*
+ * Checks to see if id or smaller #id
+ * is in localstorage
+ *
+ * @function localStorageValueMatches
+ * @private
+ *
+ * @param {String} property - name of category type
+ * @param {string} value - id of notification
+ *
+ * @returns {Boolean}
+ */
var localStorageValueMatches = function(property, value) {
var oldValue = localStorage.getItem(property);
return value <= oldValue;