Revision 57425
Added by Konstantina Galouni about 5 years ago
modules/uoa-connect-portal/trunk/src/app/utils/customization/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
[Trunk | Connect]: customization.component.ts: Check if document is undefined and return in 'buildCss()' method.