Fix for broken build

This commit is contained in:
Knut Sveidqvist 2020-08-13 20:23:57 +02:00
parent 888b1fb021
commit 450d4b5a0a
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ function initialize(options) {
// Handle legacy location of font-family configuration
// console.warn('Conf - ', options.themeVariables.fontFamily);
if (options.fontFamily) {
if (options && options.fontFamily) {
if (!options.themeVariables) {
options.themeVariables = { fontFamily: options.fontFamily };
} else {