prevent duplicate addToDom

This commit is contained in:
Elijah R 2024-07-09 23:57:19 -04:00
parent 0e4ae45d01
commit 20240215f9

View file

@ -149,6 +149,7 @@ export class Agent {
}
addToDom(parent: HTMLElement = document.body) {
if (this.cnv.parentElement) return;
parent.appendChild(this.cnv);
}