Adding new DOM element, CSS and JS code

This commit is contained in:
Stephan Kristyn
2026-02-10 14:36:03 +01:00
parent c0d26b5c08
commit e2b4b8a7f8
4 changed files with 11 additions and 2 deletions

View File

@@ -2995,7 +2995,9 @@ jQuery.PrivateBin = (function($) {
attachmentLink.attr('download', fileName);
const fileSize = Helper.formatBytes(decodedData.length);
const fileInfo = document.createTextNode(` (${fileName}, ${fileSize})`);
const fileInfo = document.createElement('span');
fileInfo.id = 'attachmentInfo';
fileInfo.textContent = ` (${fileName}, ${fileSize})`;
template[0].appendChild(fileInfo);
}