From 6973c09b327041706af03519ee2324f829a17149 Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Mon, 1 Aug 2022 17:25:05 -0700 Subject: [PATCH] Undo read from local storage for the time being. --- src/routes/__layout.svelte | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte index a039118..c2a1404 100644 --- a/src/routes/__layout.svelte +++ b/src/routes/__layout.svelte @@ -12,13 +12,15 @@ import '$root/styles/styles.scss'; import Toast from '$lib/components/toast/Toast.svelte'; - if (browser) { - const collection = JSON.parse(localStorage.collection); - console.log('collection', collection); - if (collection) { - collectionStore.addAll(collection); - } - } + // let collectionEmpty = $collectionStore.length === 0 || false; + // console.log('collectionEmpty', collectionEmpty); + // if (browser && collectionEmpty) { + // const collection = JSON.parse(localStorage.collection); + // console.log('collection', collection); + // if (collection && collection.length !== 0) { + // collectionStore.addAll(collection); + // } + // } const dev = process.env.NODE_ENV !== 'production'; @@ -56,7 +58,7 @@
{/if} - +