1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-12-01 09:58:03 +03:00

Add a default theme for CI

This commit is contained in:
Dariusz Niemczyk
2021-08-01 17:13:29 +02:00
committed by Dariusz Niemczyk
parent a9f3f873a5
commit da4a49fd31

View File

@@ -39,7 +39,7 @@ const MATRIX_THEMES = process.env.MATRIX_THEMES ?? dotenvConfig.MATRIX_THEMES;
function getActiveThemes() { function getActiveThemes() {
// We want to use `light` theme by default if it's not defined. // We want to use `light` theme by default if it's not defined.
const theme = MATRIX_THEMES; const theme = MATRIX_THEMES ?? 'light';
const themes = theme.split(',').filter(x => x).map(x => x.trim()).filter(x => x); const themes = theme.split(',').filter(x => x).map(x => x.trim()).filter(x => x);
if (themes.length > 1) { if (themes.length > 1) {
throw new Error('Please see `.env.example` for proper hotreload&themes configuation.'); throw new Error('Please see `.env.example` for proper hotreload&themes configuation.');