Bugfix: with kcHtmlClass

This commit is contained in:
Joseph Garrone
2021-03-20 02:54:15 +01:00
parent b72971f4ce
commit 6b24c5878c

View File

@ -114,9 +114,13 @@ export const Template = memo((props: TemplateProps) => {
}) })
); );
if (props.kcHtmlClass !== undefined) {
document.getElementsByTagName("html")[0] document.getElementsByTagName("html")[0]
.classList .classList
.add(cx(props.kcHtmlClass)); .add(...cx(props.kcHtmlClass).split(" "));
}
return () => { isUnmounted = true; }; return () => { isUnmounted = true; };