2
0

fix(wp): 🚨 Not a number warning

This commit is contained in:
Baptiste Arnaud
2022-04-28 16:43:58 -07:00
parent 4d98de2c70
commit 1d82940ed7
4 changed files with 23 additions and 21 deletions

View File

@ -154,30 +154,32 @@ class Typebot_Public
$url .
'",
autoOpenDelay: ' .
get_option('chat_delay') * 1000 .
',
empty(get_option('chat_delay'))
? 'undefined'
: get_option('chat_delay') * 1000 .
',
proactiveMessage: {
avatarUrl: "' .
get_option('avatar') .
'",
get_option('avatar') .
'",
textContent: "' .
get_option('text_content') .
'",
get_option('text_content') .
'",
delay: ' .
get_option('bubble_delay') * 1000 .
',
get_option('bubble_delay') * 1000 .
',
rememberClose: ' .
$remember .
'
$remember .
'
},
hiddenVariables: typebotWpUser,
button: {
color: "' .
$button_color .
'",
$button_color .
'",
iconUrl: "' .
$chat_icon .
'",
$chat_icon .
'",
},
}';
}