mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Undo read from local storage for the time being.
This commit is contained in:
parent
470c0b051e
commit
6973c09b32
1 changed files with 10 additions and 8 deletions
|
|
@ -12,13 +12,15 @@
|
||||||
import '$root/styles/styles.scss';
|
import '$root/styles/styles.scss';
|
||||||
import Toast from '$lib/components/toast/Toast.svelte';
|
import Toast from '$lib/components/toast/Toast.svelte';
|
||||||
|
|
||||||
if (browser) {
|
// let collectionEmpty = $collectionStore.length === 0 || false;
|
||||||
const collection = JSON.parse(localStorage.collection);
|
// console.log('collectionEmpty', collectionEmpty);
|
||||||
console.log('collection', collection);
|
// if (browser && collectionEmpty) {
|
||||||
if (collection) {
|
// const collection = JSON.parse(localStorage.collection);
|
||||||
collectionStore.addAll(collection);
|
// console.log('collection', collection);
|
||||||
}
|
// if (collection && collection.length !== 0) {
|
||||||
}
|
// collectionStore.addAll(collection);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
const dev = process.env.NODE_ENV !== 'production';
|
const dev = process.env.NODE_ENV !== 'production';
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -56,7 +58,7 @@
|
||||||
<div class="background" />
|
<div class="background" />
|
||||||
</Portal>
|
</Portal>
|
||||||
{/if}
|
{/if}
|
||||||
<Toast duration={3000} />
|
<Toast />
|
||||||
</Transition>
|
</Transition>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue