Fixes initial loading of themes

parent ec5f702f
Pipeline #22902 passed with stages
in 13 minutes and 26 seconds
......@@ -26,8 +26,8 @@
"e2e": "ng e2e --port 4201",
"purify": "node purifycss.js",
"compress": "gzip dist/browser/** -r",
"http-startup": "http-server dist/browser/ -p 4711",
"prod-test": "npm run build:PROD && npm run purify && npm run compress && npm run http-startup",
"http-startup": "http-server dist/browser/ -p 4711 -g",
"prod-test": "npm run build:PROD && npm run purify && npm run http-startup",
"prod-test:SSR": "npm run build:SSR && npm run job && npm run start:SSR",
"job": "npm run job:images; npm run job:link; npm run job:manifest",
"job:images:logo": "cd dist/browser/assets/jobs/; node --experimental-modules GenerateImages.mjs --command=generateLogoImages",
......
......@@ -53,7 +53,7 @@ export class ThemesService {
resolve(this.quizService.quiz.sessionConfig.theme);
return;
}
resolve();
resolve('theme-Material');
}),
]);
const usedTheme = themeConfig[0] || themeConfig[1] || themeConfig[2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment