From b168707c1448235f77e9ef439abc467df68e68e0 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 1 Jan 2024 18:31:59 +0800 Subject: [PATCH] Revert "Remove DEV check" This reverts commit d2fb86036c04f64fd5d9cc29604657b97ec4652b. --- src/components/media-modal.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/media-modal.jsx b/src/components/media-modal.jsx index 8508fe2b..968988bf 100644 --- a/src/components/media-modal.jsx +++ b/src/components/media-modal.jsx @@ -295,7 +295,8 @@ function MediaModal({ Open original media - {!!states.settings.mediaAltGenerator && + {import.meta.env.DEV && // Only dev for now + !!states.settings.mediaAltGenerator && !!IMG_ALT_API_URL && !!mediaAttachments[currentIndex]?.url && !mediaAttachments[currentIndex]?.description &&