mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Show certificate icon for p12 and pfx files
This commit is contained in:
parent
2f2079e9c1
commit
10ec90435d
1 changed files with 4 additions and 3 deletions
|
|
@ -30,6 +30,8 @@ const
|
||||||
p7c: app+'pkcs7-mime',
|
p7c: app+'pkcs7-mime',
|
||||||
p7m: app+'pkcs7-mime',
|
p7m: app+'pkcs7-mime',
|
||||||
p7s: app+'pkcs7-signature',
|
p7s: app+'pkcs7-signature',
|
||||||
|
p12: app+'pkcs12',
|
||||||
|
pfx: app+'x-pkcs12',
|
||||||
torrent: app+'x-bittorrent',
|
torrent: app+'x-bittorrent',
|
||||||
|
|
||||||
// scripts
|
// scripts
|
||||||
|
|
@ -205,9 +207,8 @@ export const FileInfo = {
|
||||||
case 'pdf' == type || 'pdf' == ext:
|
case 'pdf' == type || 'pdf' == ext:
|
||||||
result = FileType.Pdf;
|
result = FileType.Pdf;
|
||||||
break;
|
break;
|
||||||
case [app+'pgp-signature', app+'pgp-keys'].includes(mimeType)
|
case [app+'pgp-signature', app+'pgp-keys', exts.p7m, exts.p7s, exts.p12, exts.pfx].includes(mimeType)
|
||||||
|| [exts.p7m, exts.p7s].includes(mimeType)
|
|| ['asc', 'pem', 'ppk', 'p7s', 'p7m', 'p12', 'pfx'].includes(ext):
|
||||||
|| ['asc', 'pem', 'ppk', 'p7s', 'p7m'].includes(ext):
|
|
||||||
result = FileType.Certificate;
|
result = FileType.Certificate;
|
||||||
break;
|
break;
|
||||||
case match(msOffice+'.wordprocessingml') || match(openDoc+'.text') || match('vnd.ms-word')
|
case match(msOffice+'.wordprocessingml') || match(openDoc+'.text') || match('vnd.ms-word')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue