Skip to content

Commit

Permalink
fix(color generation): fixed color customization generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaschel committed Jan 9, 2023
1 parent 0cd8e9a commit 1e3ccc9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ts/themes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ const updateScopeColors = async (): Promise<void> => {
'',
) as unknown as SupportedThemes;

console.log(theme);

if (supportedThemes.includes(theme)) {
scopeColors = require(`./${theme}`);
scopeColors = await require(`./${theme}`);
console.log(scopeColors);
} else {
const themeColors = await fetchThemeColors();
scopeColors = fetchScopeColors(themeColors);
Expand Down

0 comments on commit 1e3ccc9

Please sign in to comment.