assets/js/jquery.fileupload-fp.js
Function save
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
save: function (data, options) {
// Do nothing if no processing has happened:
if (!data.canvas) {
return data;
}
Consider simplifying this complex logical expression. Open
Open
if (window.HTMLCanvasElement &&
window.HTMLCanvasElement.prototype.toBlob &&
($.type(options.maxFileSize) !== 'number' ||
file.size < options.maxFileSize) &&
(!options.fileTypes ||