Add default theme to mapping

This commit is contained in:
RMidhunSuresh 2022-05-27 14:24:44 +05:30
parent bbec2effe5
commit f6cec938a7

View file

@ -60,6 +60,14 @@ export class ThemeLoader {
details which includes the location of the CSS file. details which includes the location of the CSS file.
*/ */
Object.assign(this._themeMapping, body["source"]["built-assets"]); Object.assign(this._themeMapping, body["source"]["built-assets"]);
//Add the default-theme as an additional option to the mapping
const defaultThemeId = this.getDefaultTheme();
if (defaultThemeId) {
const cssLocation = this._findThemeLocationFromId(defaultThemeId);
if (cssLocation) {
this._themeMapping["Default"] = { id: "default", cssLocation };
}
}
} }
} }