This commit is contained in:
Yuri Kuznetsov
2025-09-09 10:17:51 +03:00
parent d0e9798389
commit 85946dbbed

View File

@@ -109,14 +109,13 @@ class MasterSiteView extends View {
}
afterRender() {
/** @type {Object.<string, Record>} */
const params = this.getThemeManager().getParam('params');
const $body = $('body');
const body = document.body;
for (const param in params) {
const value = this.getThemeManager().getParam(param);
$body.attr('data-' + Espo.Utils.camelCaseToHyphen(param), value);
for (const param of Object.keys(params)) {
body.dataset[param] = this.getThemeManager().getParam(param);
}
const footerView = this.getView('footer');