Add floating widget support #5

Merged
ogrecooper merged 8 commits from floating into main 2026-06-09 18:41:10 +00:00
Showing only changes of commit 2826db7951 - Show all commits
+5
View File
@@ -17,5 +17,10 @@
for (const [name, value] of Object.entries(CAP_FLOATING_DYNAMIC['attributes'])) { for (const [name, value] of Object.entries(CAP_FLOATING_DYNAMIC['attributes'])) {
element.setAttribute(name, value); element.setAttribute(name, value);
} }
// Trigger MutationObserver
const parent = element.parentElement;
parent.removeChild(element);
parent.appendChild(element);
}); });
})(); })();