Project

General

Profile

« Previous | Next » 

Revision 57425

[Trunk | Connect]: customization.component.ts: Check if document is undefined and return in 'buildCss()' method.

View differences:

customization.component.ts
58 58
  }
59 59

  
60 60
  private buildCss() {
61
    if(typeof document === 'undefined') {
62
      return;
63
    }
61 64

  
62 65
    document.documentElement.style.setProperty('--portal-main-color', this.layout.mainColor);
63 66
    document.documentElement.style.setProperty('--portal-dark-color', this.layout.secondaryColor);
......
230 233
}
231 234

  
232 235

  
233
`
236
`;
234 237
    css = css.concat(css1);
235 238
    appendCss(css);
236 239
  }

Also available in: Unified diff