Skip to content

Commit

Permalink
Merge pull request #42 from CMU-313/f24_jon_p1
Browse files Browse the repository at this point in the history
refactored code cognitive complexity from p1
  • Loading branch information
J0nathanLai authored Sep 24, 2024
2 parents 79f27c9 + 46cea07 commit d9eceef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/meta/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ Themes.set = async (data) => {
// Re-set the themes path (for when NodeBB is reloaded)
Themes.setPath(config);

console.log('jonathan lai');

await Meta.configs.setMultiple({
'theme:type': data.type,
'theme:id': data.id,
'theme:staticDir': config.staticDir ? config.staticDir : '',
'theme:templates': config.templates ? config.templates : '',
'theme:staticDir': config.staticDir || '',
'theme:templates': config.templates || '',
'theme:src': '',
bootswatchSkin: '',
});
Expand Down

0 comments on commit d9eceef

Please sign in to comment.