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

View file

@ -2866,10 +2866,10 @@ jQuery.PrivateBin = (function($, RawDeflate) {
// Firefox crashes with files that are about 1.5MB
// 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?
return;
}
}*/
// Fallback for browsers, that don't support the vh unit
var clientHeight = $(window).height();