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:
parent
f3452d8904
commit
3909054f14
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user