K
Kirby
Guest
XF.CookieConsentForm
method load
Code:
this.$target[0].replaceWith(this.$embedHtml[0].content.cloneNode(true));
This inserts the actual embed code into DOM but does not call
activate
on it, eg. handlers do not get called (if there are any, like for Twitter).Changing this to smth. like
Code:
Code:
let parent = this.$target[0].parentNode;
this.$target[0].replaceWith(this.$embedHtml[0].content.cloneNode(true));
XF.activate(parent);
seems to fix this.
Continue reading...