Remove data length detection, because we work with URL

This commit is contained in:
R4SAS 2019-06-12 06:05:55 +03:00
parent dcbefcc1c3
commit d3f9670bc2
1 changed files with 2 additions and 2 deletions

View File

@ -2866,10 +2866,10 @@ jQuery.PrivateBin = (function($, RawDeflate) {
// Firefox crashes with files that are about 1.5MB // Firefox crashes with files that are about 1.5MB
// The performance with 1MB files is bearable // The performance with 1MB files is bearable
if (data.length > 1398488) { /*if (data.length > 1398488) {
Alert.showError('File too large, to display a preview. Please download the attachment.'); //TODO: is this error really neccessary? Alert.showError('File too large, to display a preview. Please download the attachment.'); //TODO: is this error really neccessary?
return; return;
} }*/
// Fallback for browsers, that don't support the vh unit // Fallback for browsers, that don't support the vh unit
var clientHeight = $(window).height(); var clientHeight = $(window).height();