Skip to content

Commit

Permalink
Fixed a bug in setOptions method
Browse files Browse the repository at this point in the history
  • Loading branch information
paulosabayomi committed Mar 6, 2024
1 parent 96313de commit e3b970e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 1.1.4 (2024-03-05)

- Fix: A bug caused by trying to update `_custupDefaultUploadSentence` option in `setOptions` method.

## 1.1.3 (2024-03-05)

Fix: Corrected the type mistake made in version 1.1.2 by removing `targetRootElement`, it is now optional in type but still required by CustUp.
- Fix: Corrected the type mistake made in version 1.1.2 by removing `targetRootElement`, it is now optional in type but still required by CustUp.

## 1.1.2 (2024-03-05)

Expand Down
7 changes: 7 additions & 0 deletions core/custupCore.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ export default class CustUpCore extends EventTarget {
link: string;
clipboard: string;
google_drive: string;
/**
* @protected @method show_message
* @param {string} msg
* @param {"error" | "success" | "info"} type
* @param {boolean} async - for async messages that doesn't hide until the request is done
* @param {number} timeout - timeout for hiding the message
*/
dropbox: string;
box_icon: string;
onedrive: string;
Expand Down
2 changes: 1 addition & 1 deletion core/custupCore.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions core/custupCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,6 @@ export default class CustUpCore extends EventTarget {
this.load_default_files();
}else if (key === 'default_icons_override') {
this.map_override_icons_to_default_icons();
}else if (key === '_custupDefaultUploadSentence') {
this.uploadSentenceEl.innerHTML = this.options._custupDefaultUploadSentence;
}else if (key === "default_styles_override" || key === "persist_styles_override_across_instances") {
this.map_override_styles_to_default_styles();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custup",
"version": "1.1.3",
"version": "1.1.4",
"description": "Highly customisable file upload library with zero dependencies",
"main": "src/custup.min.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/custup.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e3b970e

Please sign in to comment.