address error, displayed when paste has attachment, but configuration has them disabled

This commit is contained in:
El RIDO 2020-01-04 13:33:03 +01:00
parent 4bf7f863dc
commit a9bf667f8e
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
3 changed files with 3 additions and 3 deletions

View file

@ -3088,8 +3088,8 @@ jQuery.PrivateBin = (function($, RawDeflate) {
$attachment = $('#attachment');
$dragAndDropFileName = $('#dragAndDropFileName');
$dropzone = $('#dropzone');
$attachmentLink = $('#attachment a') || $('<a>');
if($attachment.length) {
$attachmentLink = $('#attachment a');
$attachmentPreview = $('#attachmentPreview');
$fileInput = $('#file');