mirror of
https://github.com/wahyd4/links.git
synced 2026-08-09 05:06:16 +10:00
Update image fetch logic
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user