Просмотр исходного кода

Remove data length detection, because we work with URL

R4SAS 7 лет назад
Родитель
Сommit
d3f9670bc2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      js/privatebin.js

+ 2 - 2
js/privatebin.js

@@ -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();