Skip to content

Commit 9d29665

Browse files
committed
Show font icon for more font types
1 parent f31db04 commit 9d29665

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
unreleased
22
==========
33

4+
* Show font icon for more font types
45
* deps: mime-types@~2.1.18
56
- Add new mime types
67
- deps: mime-db@~1.33.0

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ var icons = {
540540
'folder': 'folder.png',
541541

542542
// generic mime type icons
543+
'font': 'font.png',
543544
'image': 'image.png',
544545
'text': 'page_white_text.png',
545546
'video': 'film.png',
@@ -550,7 +551,6 @@ var icons = {
550551
'+zip': 'box.png',
551552

552553
// specific mime type icons
553-
'application/font-woff': 'font.png',
554554
'application/javascript': 'page_white_code_red.png',
555555
'application/json': 'page_white_code.png',
556556
'application/msword': 'page_white_word.png',
@@ -564,7 +564,6 @@ var icons = {
564564
'application/vnd.oasis.opendocument.text': 'page_white_word.png',
565565
'application/x-7z-compressed': 'box.png',
566566
'application/x-sh': 'application_xp_terminal.png',
567-
'application/x-font-ttf': 'font.png',
568567
'application/x-msaccess': 'page_white_database.png',
569568
'application/x-shockwave-flash': 'page_white_flash.png',
570569
'application/x-sql': 'page_white_database.png',
@@ -618,7 +617,6 @@ var icons = {
618617
'.map': 'map.png',
619618
'.msi': 'box.png',
620619
'.mv4': 'film.png',
621-
'.otf': 'font.png',
622620
'.pdb': 'page_white_database.png',
623621
'.php': 'page_white_php.png',
624622
'.pl': 'page_white_code.png',

0 commit comments

Comments
 (0)