mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-22 06:28:46 -04:00
Merge branch 'master' into remove_page_template
# Conflicts: # CHANGELOG.md # lib/Configuration.php
This commit is contained in:
commit
99cee27a6d
2 changed files with 3 additions and 2 deletions
|
@ -3270,13 +3270,13 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
|
||||
if (typeof loadedFiles !== 'undefined') {
|
||||
files = loadedFiles;
|
||||
loadedFiles.forEach(loadedFile => {
|
||||
loadedFiles.forEach((loadedFile, index) => {
|
||||
const fileReader = new FileReader();
|
||||
|
||||
fileReader.onload = function (event) {
|
||||
const dataURL = event.target.result;
|
||||
if (dataURL) {
|
||||
attachmentsData.push(dataURL);
|
||||
attachmentsData[index] = dataURL;
|
||||
}
|
||||
|
||||
if (Editor.isPreview()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue