major: core upgrade
This commit is contained in:
@ -197,11 +197,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
subtree: true,
|
||||
childList: true
|
||||
}));
|
||||
// 0.15 needed https://git.startinblox.com/framework/sib-core/issues/732
|
||||
// document.addEventListener('widgetRendered', event => {
|
||||
// jsI18n.processNode(event.target);
|
||||
// // Then wait one arbitrary second to re-render the whole document in case a widget re-rendered
|
||||
// clearTimeout(timer);
|
||||
// timer = setTimeout(() => jsI18n.processNode(document.querySelector('body')), 500);
|
||||
// });
|
||||
document.addEventListener('widgetRendered', event => {
|
||||
jsI18n.processNode(event.target);
|
||||
// Then wait one arbitrary second to re-render the whole document in case a widget re-rendered
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(() => jsI18n.processNode(document.querySelector('body')), 500);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user