From 38bc33251feab25a127b8e443bb2854111bdd709 Mon Sep 17 00:00:00 2001 From: argirok Date: Mon, 19 Jun 2023 11:04:26 +0300 Subject: [PATCH] update checks for fontsDarkMode --- connect/community/CustomizationOptions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connect/community/CustomizationOptions.ts b/connect/community/CustomizationOptions.ts index 3cb0d7da..f6838fe2 100644 --- a/connect/community/CustomizationOptions.ts +++ b/connect/community/CustomizationOptions.ts @@ -23,7 +23,7 @@ export class Layout { variables['@global-background'] = Layout.convertRGBAtoRGB(options.backgrounds.light.color); variables['@hero-background-image'] = (options.backgrounds.form.imageFile ? (this.getUrl(properties.utilsService + '/download/' + options.backgrounds.form.imageFile)) : 'none'); variables['@hero-background-position'] = options.backgrounds.form.position; - variables['@hero-fonts-mode'] = options.backgrounds.form.fontsDarkMode?'dark':'light'; + variables['@hero-fonts-mode'] = options.backgrounds.form.fontsDarkMode == true ?'dark':'light'; } if (options.buttons) { //general @@ -197,7 +197,7 @@ export class CustomizationOptions { if (!current.backgrounds.form.position) { current.backgrounds.form.position = "center bottom" } - if (!current.backgrounds.form.fontsDarkMode) { + if (current.backgrounds.form.fontsDarkMode == undefined) { current.backgrounds.form.fontsDarkMode = true; } if (!current.buttons) {