From 861e944fe1ed7b017831c36f28e607d33781100c Mon Sep 17 00:00:00 2001 From: k00b Date: Mon, 30 Sep 2024 12:37:33 -0500 Subject: [PATCH] fix item full embed for the 3rd and final(?) time --- components/item-full.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/item-full.js b/components/item-full.js index b07c38d0..ba167931 100644 --- a/components/item-full.js +++ b/components/item-full.js @@ -51,17 +51,17 @@ function BioItem ({ item, handleClick }) { } function ItemEmbed ({ url, imgproxyUrls }) { + const provider = parseEmbedUrl(url) + if (provider) { + return + } + if (imgproxyUrls) { const src = IMGPROXY_URL_REGEXP.test(url) ? decodeProxyUrl(url) : url const srcSet = imgproxyUrls?.[url] return } - const provider = parseEmbedUrl(url) - if (provider) { - return - } - return null }