This commit is contained in:
2021-11-18 21:21:13 +03:00
parent 5e7b4c6707
commit 5083f15590
+1 -1
View File
@@ -72,7 +72,7 @@ __PluginManager__.register('Logger', function(module, exports, require, global){
*/ */
this.collection = node || document.getElementById('kit-logger') || document.querySelector('.kit-logger') || makeNode(collectionTemplater); this.collection = node || document.getElementById('kit-logger') || document.querySelector('.kit-logger') || makeNode(collectionTemplater);
if(!this.collection.parentElement) { if((this.collection instanceof HTMLElement) && !this.collection.parentElement) {
document.body.appendChild(this.collection) document.body.appendChild(this.collection)
} }
}; };