Fixes #861: Properly insert chatroom into DOM
This commit is contained in:
parent
e0ea0dfd88
commit
4c23925684
@ -39,10 +39,15 @@
|
||||
|
||||
ChatRoomView: {
|
||||
insertIntoDOM: function () {
|
||||
converse.env.jQuery('#converse-embedded-chat').html(this.$el);
|
||||
if (!document.body.contains(this.el)) {
|
||||
var container = document.querySelector('#converse-embedded-chat');
|
||||
container.innerHTML = '';
|
||||
container.appendChild(this.el);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user