Fix emote wrapper children

This commit is contained in:
Jiiks 2018-03-17 13:17:50 -03:00
parent 0af356823a
commit e268f769b7
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ export default class {
static injectEmote(root) {
if (!emotesEnabled) return;
while (root.firstChild) {
root.removeChild(root.firstChild);
}
const { bdemoteName, bdemoteSrc } = root.dataset;
if (!bdemoteName || !bdemoteSrc) return;
VueInjector.inject(