fix character info being wrongly shown

This commit is contained in:
Daniel Bulant 2023-01-22 10:45:44 +01:00
parent da54646ce8
commit cbed6bb4f7

View file

@ -316,6 +316,8 @@
$: if(!loadingNextPage && chapters && chapters.data.length < chapters.total && scrollY > 300 && scrollY > document.body.scrollHeight * 0.8) loadNextPage();
var selectedCharacter = null;
$: if(!selectedImage) selectedCharacter = null;
</script>
<svelte:window on:beforeunload={beforeUnload} bind:innerWidth={width} bind:scrollY bind:innerHeight />