diff --git a/CHANGELOG.md b/CHANGELOG.md index 659de7cc..0fe24883 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog (v0) +## 0.49.11 + +- bug fixes + - regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters) + - html widget: content not initialized properly + ## 0.49.10 - bug fixes diff --git a/src/client/ui/utils.js b/src/client/ui/utils.js index 1bf988f9..65fdecca 100644 --- a/src/client/ui/utils.js +++ b/src/client/ui/utils.js @@ -6,7 +6,7 @@ module.exports = { return `` }, iconify:function(string){ - return String(string).replace(/\^[^\s]{4,}/g,(x)=>{return module.exports.icon(x.substring(1))}) + return String(string).replace(/\^[^\s]{2,}/g,(x)=>{return module.exports.icon(x.substring(1))}) }, diff --git a/src/client/widgets/frames/html.js b/src/client/widgets/frames/html.js index 9e600f0b..acf573ed 100644 --- a/src/client/widgets/frames/html.js +++ b/src/client/widgets/frames/html.js @@ -45,6 +45,8 @@ class Html extends StaticProperties(Widget, {bypass: true}) { if (!this.getProp('border')) this.container.classList.add('noborder') this.frame = DOM.get(this.widget, '.frame')[0] + if (this.getProp('html') !== '') this.updateHtml() + } updateHtml(){