mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 15:08:28 +03:00
Improve PDF detection (#40)
This commit is contained in:
parent
ecf23a4f6d
commit
125d4e0282
1 changed files with 5 additions and 0 deletions
|
|
@ -199,6 +199,11 @@
|
|||
Globals.bAllowPdfPreview = !!_.find(window.navigator.mimeTypes, function (oType) {
|
||||
return oType && 'application/pdf' === oType.type;
|
||||
});
|
||||
|
||||
if (!Globals.bAllowPdfPreview)
|
||||
{
|
||||
Globals.bAllowPdfPreview = (typeof window.navigator.mimeTypes['application/pdf'] !== 'undefined');
|
||||
}
|
||||
}
|
||||
|
||||
Globals.aBootstrapDropdowns = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue