mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-23 15:00:40 -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
|
@ -2,6 +2,7 @@
|
|||
|
||||
## 2.0.0 (not yet released)
|
||||
* CHANGED: Remove page template (#265)
|
||||
* FIXED: Name mismatches in attached files (#1584)
|
||||
|
||||
## 1.7.8 (2025-06-30)
|
||||
* FIXED: Duplicate attachment for every comment (#1577)
|
||||
|
|
|
@ -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