tests & image-request on google & inspirobot & front

This commit is contained in:
2024-05-11 22:37:32 +02:00
parent 6602bfd408
commit 3f0db3f976
24 changed files with 1421 additions and 454 deletions

View File

@@ -10,14 +10,12 @@ export async function searchAndResizeImage(query) {
const imageUrl = data.items[0].link;
console.log('Image URL:', imageUrl);
return imageUrl;
} else {
console.error('No image found.');
return "";
}
} catch (error) {
console.error('Error fetching image:', error);
return "";
}
console.error('No image found.');
return "";
}