Merge pull request #4321 from tsiegleauq/font-mimetype-hotfix

Adds "application" to font mime types
This commit is contained in:
Emanuel Schütze 2019-02-12 17:33:15 +01:00 committed by GitHub
commit 39c7a51218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ export class ViewMediafile extends BaseViewModel implements Searchable {
* @returns true or false * @returns true or false
*/ */
public isFont(): boolean { public isFont(): boolean {
return ['font/ttf', 'font/woff'].includes(this.type); return ['font/ttf', 'font/woff', 'application/font-woff', 'application/font-sfnt'].includes(this.type);
} }
/** /**