Commit af0f23c
authored
fix: font file type check for better browser compatibility (@byseif21) (monkeytypegame#6836)
### Description
* browsers don't provide accurate MIME types for font files , I couldn't
even reuse the site fonts as local fonts.
* Validation now checks both MIME type and file extension to ensure
valid fonts aren't mistakenly rejected.1 parent 31585bd commit af0f23c
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
0 commit comments