XenForo
Administrative
- Thread starter
- Admin
- #1
XF.CookieConsentForm method loadCode:
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 clone = this.$embedHtml[0].content.cloneNode(true);
XF.activate(clone);
this.$target[0].replaceWith(clone);
seems to fix this.
ادامه مطلب...