Skip to content

Commit 400ee8e

Browse files
author
hikki
committed
v5.1
1 parent 24a46ae commit 400ee8e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/assets/component.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ window._component = {
183183
}else {
184184
body.style.height = '70px';
185185
}
186-
body.insertAdjacentHTML("afterbegin",info);
186+
if (info instanceof HTMLElement){
187+
body.append(info);
188+
}else {
189+
body.insertAdjacentHTML("afterbegin", info);
190+
}
187191

188192
box.append(header);
189193
box.append(body);

0 commit comments

Comments
 (0)