Interactive interface for browsing global, full-resolution satellite imagery
use constants for localStorage keys
Jason Kentcf99d7ebd3eb
diff --git a/web/js/modules/layers/util.js b/web/js/modules/layers/util.jsindex 3316d4d49..6e4d80406 100644--- a/web/js/modules/layers/util.js+++ b/web/js/modules/layers/util.js@@ -1253,7 +1253,7 @@ export const hasNonClickableVectorLayer = (activeLayers, mapRes) => {// safeLocalStorage.removeItem(lsKey);export const updateRecentLayers = (id) => {- const { recentLayersKey: key } = safeLocalStorage.keys;+ const { recentLayers: key } = safeLocalStorage.keys;const recentLayersJson = safeLocalStorage.getItem(key);let recentLayers = JSON.parse(recentLayersJson) || [];if (recentLayers.length >= 10) {diff --git a/web/js/util/local-storage.js b/web/js/util/local-storage.jsindex 0a81b6b60..aa59cbc12 100644--- a/web/js/util/local-storage.js+++ b/web/js/util/local-storage.js@@ -18,6 +18,7 @@ const enabled = (function() {export default {enabled,keys: {+ RECENT_LAYERS: 'recentlyAddedLayers',DISMISSED_EVENT_VIS_ALERT: 'dismissedEventVisibilityAlert',DISMISSED_COMPARE_ALERT: 'dismissedCompareAlert',HIDE_TOUR: 'hideTour',