Update image fetch logic

This commit is contained in:
2025-07-01 22:13:50 +10:00
parent 2eecef6948
commit 41d0785db4
@@ -615,8 +615,14 @@
// Get image URL based on source
function getImageUrl() {
const width = window.innerWidth;
const height = window.innerHeight;
var width = window.innerWidth;
if (width < 300) {
width = 300; // Minimum width
}
var height = window.innerHeight;
if (height < 300) {
height = 300; // Minimum height
}
if (config.imageSource === 'picsum') {
const imageId = getRandomImageId();