#1542 Handling of default values when no theme is set

This commit is contained in:
Knut Sveidqvist
2020-07-18 09:37:51 +02:00
parent 8d076efd71
commit b6453383cf
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@@ -16,4 +16,5 @@ dist/sequenceTest.html
.vscode/
cypress/platform/current.html
cypress/platform/experimental.html
cypress/platform/experimental.html
local/

View File

@@ -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();