HM-58. Добавлен новый тип логов client-logs (#21)

This commit is contained in:
Nikolay
2020-07-20 00:29:06 +03:00
committed by GitHub
parent 47fe69bc65
commit 05b43cac78
8 changed files with 232 additions and 67 deletions

View File

@ -26,7 +26,9 @@ class Component extends EmitService {
throw new Error(message);
}
this.mainNode = content.firstElementChild.cloneNode(true);
parentNode.appendChild(this.mainNode);
if (parentNode) {
parentNode.appendChild(this.mainNode);
}
this._listeners = [];
this._events = {};
}