Interactive interface for browsing global, full-resolution satellite imagery
abort if local storage disabled
Jason Kent5eea59385ac8
diff --git a/web/js/modules/product-picker/util.js b/web/js/modules/product-picker/util.jsindex 7559b18ba..11d0c409f 100644--- a/web/js/modules/product-picker/util.js+++ b/web/js/modules/product-picker/util.js@@ -44,6 +44,9 @@ export function clearSingleRecentLayer({ id: layerId, projections }) {* @param {*} layer - the layer being added to the map*/export function updateRecentLayers({ id: layerId, projections }) {+ if (!safeLocalStorage.enabled) {+ return;+ }const recentLayersJson = safeLocalStorage.getItem(RECENT_LAYERS);const recentLayers = JSON.parse(recentLayersJson) || lodashCloneDeep(DEFAULT_OBJ);