[c] changed random image chooser to choose optimized images

This commit is contained in:
Sangelo 2024-06-21 09:12:31 +02:00
parent 6fc6fbaa45
commit 521be14975

View file

@ -10,7 +10,7 @@
onMount(() => { onMount(() => {
document.getElementById("banner").src = document document.getElementById("banner").src = document
.getElementById("banner") .getElementById("banner")
.src.replace("pic0", `${modpack}/pic${rand(1, 30)}`); .src.replace("pic0", `${modpack}/optimized/pic${rand(1, 30)}`);
console.log(document.getElementById("banner").src); console.log(document.getElementById("banner").src);
}); });
</script> </script>