Don't call mediatag for non-image files

pull/1/head
yflory 8 years ago
parent 37d3d04f0e
commit d8ebe566d8

@ -37,7 +37,9 @@ define([
data.name = file.metadata.name;
data.url = href;
data.mediatag = true;
if (file.metadata.type.slice(0,6) === 'image/') {
data.mediatag = true;
}
return data;
};

Loading…
Cancel
Save