fix: only parse image urls that start with http
This commit is contained in:
@@ -13,7 +13,7 @@ const CachedImage = ({ src, ...props }: ImageProps) => {
|
||||
|
||||
let imageUrl = src;
|
||||
|
||||
if (typeof imageUrl === 'string') {
|
||||
if (typeof imageUrl === 'string' && imageUrl.startsWith('http')) {
|
||||
const parsedUrl = new URL(imageUrl);
|
||||
|
||||
if (parsedUrl.host === 'image.tmdb.org' && currentSettings.cacheImages) {
|
||||
|
||||
Reference in New Issue
Block a user