fixed image-loading on site loading
authorPhiTux <redacted>
Sat, 11 Oct 2025 22:09:16 +0000 (00:09 +0200)
committerPhiTux <redacted>
Sat, 11 Oct 2025 22:09:16 +0000 (00:09 +0200)
frontend/src/lib/EmojiMart.svelte
frontend/src/routes/(authed)/write/+page.svelte

index 347df846eb55216d91424ea73d82b4efc458f265..9773905eb99213c9fb1d1ff27f56d2f35b17e162 100644 (file)
                        }
                });
                emojiPickerEl.appendChild(picker);
-               setTimeout(() => {
-                       // ensure click outside works
-                       mounted = true;
-               }, 100);
        }
 
        onDestroy(() => {
index 794e8623d0f22dbd46ef22ee270c214ec310c49f..48a48ab4cc65c8cdaf6aa98fe622168d5810187f 100644 (file)
        const imageExtensions = ['jpeg', 'jpg', 'gif', 'png', 'webp', 'bmp'];
 
        $effect(() => {
-               if (filesOfDay) {
+               if (filesOfDay && autoLoadImages !== undefined) {
                        // add all files to images if correct extension
                        filesOfDay.forEach((file) => {
                                // if image -> load it!
                                ) {
                                        images = [...images, file];
 
+                                       console.log(autoLoadImages);
                                        if (autoLoadImages) {
                                                loadImage(file);
                                        }
git clone https://git.99rst.org/PROJECT