Interactive interface for browsing global, full-resolution satellite imagery
removed warn and shortened two-liner #482
Benjamina9d7219a7bfe
diff --git a/web/js/notifications/wv.notifications.ui.js b/web/js/notifications/wv.notifications.ui.jsindex 9bd24b47f..861b06334 100644--- a/web/js/notifications/wv.notifications.ui.js+++ b/web/js/notifications/wv.notifications.ui.js@@ -59,7 +59,6 @@ wv.notifications.ui = wv.notifications.ui || function(models, config) {var init = function() {var reactComponent, options, p, alertUser;if(!wv.util.browser.localStorage) {- console.warn('User does not have localStorage');return;}mainIcon = $('#wv-info-button')[0];@@ -191,9 +190,8 @@ wv.notifications.ui = wv.notifications.ui || function(models, config) {type = obj.notification_type;idString = obj.created_at.toString();- fieldExists = false;fieldValueMatches = false;- fieldExists = localStorage.getItem(type);+ fieldExists = !!localStorage.getItem(type);if (fieldExists) {fieldValueMatches = localStorageValueMatches(type, idString);}