mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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) {
|
Globals.bAllowPdfPreview = !!_.find(window.navigator.mimeTypes, function (oType) {
|
||||||
return oType && 'application/pdf' === oType.type;
|
return oType && 'application/pdf' === oType.type;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!Globals.bAllowPdfPreview)
|
||||||
|
{
|
||||||
|
Globals.bAllowPdfPreview = (typeof window.navigator.mimeTypes['application/pdf'] !== 'undefined');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Globals.aBootstrapDropdowns = [];
|
Globals.aBootstrapDropdowns = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue