mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 13:59:54 +02:00
#1542 Handling of default values when no theme is set
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -16,4 +16,5 @@ dist/sequenceTest.html
|
|||||||
|
|
||||||
.vscode/
|
.vscode/
|
||||||
cypress/platform/current.html
|
cypress/platform/current.html
|
||||||
cypress/platform/experimental.html
|
cypress/platform/experimental.html
|
||||||
|
local/
|
@@ -539,6 +539,8 @@ function initialize(options) {
|
|||||||
if (options.theme && themes[options.theme]) {
|
if (options.theme && themes[options.theme]) {
|
||||||
// Todo merge with user options
|
// Todo merge with user options
|
||||||
options.themeVariables = themes[options.theme];
|
options.themeVariables = themes[options.theme];
|
||||||
|
} else {
|
||||||
|
options.themeVariables = themes.default;
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = typeof options === 'object' ? setSiteConfig(options) : getSiteConfig();
|
const config = typeof options === 'object' ? setSiteConfig(options) : getSiteConfig();
|
||||||
|
Reference in New Issue
Block a user