Update SRI

Remove dejavu
This commit is contained in:
Haocen Xu 2019-08-17 15:28:37 -04:00
parent 078b8d8fd6
commit 2eed7a8a1c
No known key found for this signature in database
GPG key ID: 3F0D955A0F6AD729
3 changed files with 2 additions and 15 deletions

View file

@ -2809,19 +2809,6 @@ jQuery.PrivateBin = (function($, RawDeflate) {
.attr('src', blobUrl))
);
} else if (mimeType.match(/\/pdf/i)) {
// PDFs are only displayed if the filesize is smaller than about 1MB (after base64 encoding).
// Bigger filesizes currently cause crashes in various browsers.
// See also: https://code.google.com/p/chromium/issues/detail?id=69227
// Firefox crashes with files that are about 1.5MB
// The performance with 1MB files is bearable
if (data.length > 1398488) {
Alert.showError(
I18n._('File too large to display a preview. Please download the attachment.')
); //TODO: is this error really neccessary?
return;
}
// Fallback for browsers, that don't support the vh unit
const clientHeight = $(window).height();