mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-03-05 13:30:32 -05:00
Use pure JavaScript to create a div element
This commit is contained in:
@@ -3091,7 +3091,9 @@ jQuery.PrivateBin = (function($) {
|
||||
function printDragAndDropFileNames(fileNames) {
|
||||
$dragAndDropFileNames.empty();
|
||||
fileNames.forEach(fileName => {
|
||||
$('<div>').text(fileName).appendTo($dragAndDropFileNames);
|
||||
const div = document.createElement('div');
|
||||
div.textContent = fileName;
|
||||
$(div).appendTo($dragAndDropFileNames);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user