diff --git a/src/plugins/download/DownloadButton.tsx b/src/plugins/download/DownloadButton.tsx index c26e6ae..701508a 100644 --- a/src/plugins/download/DownloadButton.tsx +++ b/src/plugins/download/DownloadButton.tsx @@ -27,7 +27,7 @@ export function DownloadButton() { undefined; // slides must be explicitly marked as downloadable when custom download function is provided - const canDownload = customDownload ? Boolean(currentSlide?.download) : Boolean(downloadUrl); + const canDownload = customDownload ? currentSlide?.download !== false : Boolean(downloadUrl); const defaultDownload = () => { if (currentSlide && downloadUrl) { diff --git a/src/plugins/share/ShareButton.tsx b/src/plugins/share/ShareButton.tsx index 558966b..7a83178 100644 --- a/src/plugins/share/ShareButton.tsx +++ b/src/plugins/share/ShareButton.tsx @@ -28,7 +28,7 @@ export function ShareButton() { undefined; // slides must be explicitly marked as shareable when custom share function is provided - const canShare = customShare ? Boolean(currentSlide?.share) : share && navigator.canShare(share); + const canShare = customShare ? currentSlide?.share !== false : share && navigator.canShare(share); const defaultShare = () => { if (share) {