Skip to content

Commit

Permalink
Minor fixes for media resource
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzapp committed Jul 14, 2021
1 parent 652274b commit d1535b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Common/Entity/Resource/Media.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

/**
* The base class for all Media objects
* The base class for all media resources
*
* @memberof HashBrown.Common.Entity.Resource
*/
Expand All @@ -11,11 +11,10 @@ class Media extends HashBrown.Entity.Resource.ResourceBase {
return 'file-video-o';
}

if(this.isImage()) {
if(this.isImage() || this.isSvg()) {
return 'file-image-o';
}


if(this.isAudio()) {
return 'file-audio-o';
}
Expand Down

0 comments on commit d1535b1

Please sign in to comment.