Merge branch 'soon' of github.com:xwiki-labs/cryptpad into soon

pull/1/head
yflory 2020-12-14 16:01:12 +01:00
commit 249483798f
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ define([
});
};
var MAX_IMAGE_SIZE = 1 * 1024 * 1024; // 1 MB
var maxSizeStr = Messages._getKey('formattedMB', [Util.bytesToMegabytes(MAX_IMAGE_SIZE)]);
var maxSizeStr = Util.bytesToMegabytes(MAX_IMAGE_SIZE);
var addImageToCanvas = function (img) {
if (img.src && img.src.length > MAX_IMAGE_SIZE) {
UI.warn(Messages._getKey('upload_tooLargeBrief', [maxSizeStr]));