Skip to content

Commit

Permalink
mermaid-js#1542 Handling of default values when no theme is set
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Jul 18, 2020
1 parent 8d076ef commit b645338
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ dist/sequenceTest.html

.vscode/
cypress/platform/current.html
cypress/platform/experimental.html
cypress/platform/experimental.html
local/
2 changes: 2 additions & 0 deletions src/mermaidAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ function initialize(options) {
if (options.theme && themes[options.theme]) {
// Todo merge with user options
options.themeVariables = themes[options.theme];
} else {
options.themeVariables = themes.default;
}

const config = typeof options === 'object' ? setSiteConfig(options) : getSiteConfig();
Expand Down

0 comments on commit b645338

Please sign in to comment.