Improve PDF detection (#40)

This commit is contained in:
RainLoop Team 2016-05-03 20:31:30 +03:00
parent ecf23a4f6d
commit 125d4e0282

View file

@ -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 = [];