From 3371fd5acc366294d5b6b8836e11208a6e1b62fd Mon Sep 17 00:00:00 2001 From: Trung Le Date: Sun, 1 Dec 2024 21:09:36 -0800 Subject: [PATCH] Update mediaSlider_v2.js --- js/mediaSlider_v2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/mediaSlider_v2.js b/js/mediaSlider_v2.js index 618bef6..ff864e4 100644 --- a/js/mediaSlider_v2.js +++ b/js/mediaSlider_v2.js @@ -105,6 +105,9 @@ class MediaSlider { } createMediaElement(url) { + if (!url) { + return `
📄 No documents 📋
`; + } const mediaType = this.detectMediaType(url); switch(mediaType) { case 'image':