fix(core): update

This commit is contained in:
2021-08-16 16:26:13 +02:00
parent 90089357cf
commit c0a425e16d
4 changed files with 52 additions and 43 deletions

View File

@@ -63,7 +63,10 @@ export function serializeFunction(rootNode) {
const noteForAppending: HTMLElement[] = [];
// lets care about static css first
if ((nodeArg.constructor as any).styles && (nodeArg.constructor as any).styles instanceof Array) {
if (
(nodeArg.constructor as any).styles &&
(nodeArg.constructor as any).styles instanceof Array
) {
for (const objectArg of (nodeArg.constructor as any).styles) {
const styleTag = document.createElement('style');
styleTag.textContent = prependCss(nodeUUID, objectArg.cssText);