Bugfixes, dialog improvements

* It is now possible to pass an element as the dialog message to have it inserted as the body.
This commit is contained in:
2025-09-21 00:45:34 +02:00
parent 6e1351d9ab
commit bd7b7ac498
7 changed files with 95 additions and 20 deletions

2
dom.js
View File

@@ -56,6 +56,8 @@ class DomHelper {
* @returns
*/
append(tag, children) {
// Handle null, to make it easy to skip items with conditionals
if (children === null) return;
//console.debug(`append: ${tag.nodeName}`, children);
if (typeof children == 'object' && children instanceof Element) {
//console.debug(`-> appended element`);