Allow images from public folder

This commit is contained in:
prototypa
2023-03-12 07:34:53 -04:00
parent 5ff2f8eb56
commit 40a8aaa6a3

View File

@ -22,7 +22,7 @@ export const findImage = async (imagePath?: string) => {
return null; return null;
} }
if (imagePath.startsWith('http://') || imagePath.startsWith('https://')) { if (imagePath.startsWith('http://') || imagePath.startsWith('https://') || imagePath.startsWith('/')) {
return imagePath; return imagePath;
} }