x4js 2.3.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -133,7 +133,6 @@ export class Icon extends Component<IconProps> {
|
|
|
133
133
|
* import myicon from "./myicon.svg";
|
|
134
134
|
* setIcon(myicon);
|
|
135
135
|
*/
|
|
136
|
-
|
|
137
136
|
setIcon( iconId: string ) {
|
|
138
137
|
this.clearContent( );
|
|
139
138
|
|
|
@@ -148,6 +147,9 @@ export class Icon extends Component<IconProps> {
|
|
|
148
147
|
if( iconId.startsWith("data:image/svg+xml,<svg") ) {
|
|
149
148
|
this.dom.insertAdjacentHTML('beforeend', iconId.substring(19) );
|
|
150
149
|
}
|
|
150
|
+
else if( iconId.startsWith("data:image/svg+xml;base64,") ) {
|
|
151
|
+
this.dom.insertAdjacentHTML('beforeend', atob(iconId.substring(26)) );
|
|
152
|
+
}
|
|
151
153
|
else if( iconId.startsWith("<svg") ) { // raw
|
|
152
154
|
this.dom.insertAdjacentHTML('beforeend', iconId );
|
|
153
155
|
}
|