Adds "application" to font mime types

Adds 'application/font-woff', 'application/font-sfnt' to font detection.
Hotfix to support different server behavior.
This commit is contained in:
Sean Engelhardt 2019-02-12 16:04:03 +01:00
parent f3452d8904
commit 3909054f14

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);
} }
/** /**