Fix JS error
parent
0d5cb25ad2
commit
357a50f820
|
@ -1111,7 +1111,7 @@ export class Client {
|
|||
const bodyEl = this.parent.parentElement;
|
||||
if (bodyEl) {
|
||||
bodyEl.removeAttribute("class");
|
||||
if (enrichedMeta.pageDecoration.cssClasses) {
|
||||
if (enrichedMeta.pageDecoration?.cssClasses) {
|
||||
bodyEl.className = enrichedMeta.pageDecoration.cssClasses.join(" ")
|
||||
.replaceAll(/[^a-zA-Z0-9-_ ]/g, "");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue