From 6d74e93b704953f9aae650463f5a04bd5e45daf4 Mon Sep 17 00:00:00 2001 From: Abayomi Amusa Date: Sun, 11 Feb 2024 19:26:49 +0100 Subject: [PATCH] v1.0.5 unhandled exception fixed --- CHANGELOG.md | 14 ++++++++++++-- core/custupCore.js | 2 +- package.json | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8180146..742ef48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,19 @@ # Changelog +## 1.0.5 + +- Fix: Unhandled fetch exception when loading default files. + +## 1.0.4 + +- Fix: Added toggle button to toggle add new file UI visible or hidden to the Elegant UI type. +- New: Added hide_add_file_ui method +- New: Added is_add_file_ui_shown + ## 1.0.0 -- Added chunk upload -- Added new UI type: elegant +- New: Added chunk upload +- New: Added new UI type: elegant - Fix: file persistent storage method, files are now stored as ObjectURL on https and base64 on http - New: Added auto upload for files added to the UI when files are still uploading - New: Added option display_file_sources: if set to false the file sources will not be listed on the default UI. diff --git a/core/custupCore.js b/core/custupCore.js index 77a67a3..59203cc 100644 --- a/core/custupCore.js +++ b/core/custupCore.js @@ -890,7 +890,7 @@ export default class CustUpCore { file.name = this.getRandChars('default') file.isDefaultFile = !file_obj.isUploadable this.handle_selected_files([file], null, file_obj.isUploadable) - }) + }).catch(err => this.show_message('An error occured could not load a default file', 'error')); }) } diff --git a/package.json b/package.json index 4b46ab5..205dce4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "custup", - "version": "1.0.4", + "version": "1.0.5", "description": "Highly customisable file upload library with zero dependencies", "main": "src/custup.min.js", "scripts": {