refactored CosmicDawn importer - now working!
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -8,7 +8,7 @@ function attachmentList(json){
|
||||
var attachments = document.getElementById('attachments');
|
||||
attachments.innerHTML = '';
|
||||
for (var attachment of json){
|
||||
if (attachment.mime.startsWith('image')){
|
||||
if (attachment.mime.startsWith('image')||attachment.url.includes('.jpg')||attachment.url.includes('.png')||attachment.url.includes('.gif')){
|
||||
var img = document.createElement('img');
|
||||
img.src = attachment.url;
|
||||
attachments.appendChild(img);
|
||||
|
||||
Reference in New Issue
Block a user