From d5a3581469e895ac6670d448be6b2dfc355fa321 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 15 Oct 2019 18:03:07 +0200 Subject: [PATCH] Placeholder while loading mediatag and broken images for 404 --- www/common/media-tag.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/common/media-tag.js b/www/common/media-tag.js index 9bdaddc25..a2beb3b4a 100644 --- a/www/common/media-tag.js +++ b/www/common/media-tag.js @@ -435,9 +435,14 @@ return mediaObject; } + mediaObject.tag.innerHTML = ''; + // Download the encrypted blob download(src, function (err, u8Encrypted) { if (err) { + if (err === "XHR_ERROR 404") { + mediaObject.tag.innerHTML = ''; + } return void emit('error', err); } // Decrypt the blob