From 2eed7a8a1c2715c6ca7ead1870079b8f2469ce9a Mon Sep 17 00:00:00 2001 From: Haocen Xu Date: Sat, 17 Aug 2019 15:28:37 -0400 Subject: [PATCH] Update SRI Remove dejavu --- js/privatebin.js | 13 ------------- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index aea4275..629df1d 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -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(); diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index deca579..780396e 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -71,7 +71,7 @@ if ($MARKDOWN): endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 0c55399..cfda0a4 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -49,7 +49,7 @@ if ($MARKDOWN): endif; ?> - +