2
0

fix(wp): 🐛 Bubble not displaying with proactive message

This commit is contained in:
Baptiste Arnaud
2022-05-05 12:57:11 -07:00
parent 78c4596e93
commit ad3a140982
4 changed files with 24 additions and 21 deletions

View File

@ -154,32 +154,32 @@ class Typebot_Public
$url .
'",
autoOpenDelay: ' .
empty(get_option('chat_delay'))
(get_option('chat_delay') === '' || get_option('chat_delay') === null
? 'undefined'
: get_option('chat_delay') * 1000 .
',
: 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 .
'",
},
}';
}