Fix window.chatwootSettings is undefined

This commit is contained in:
Pranav Raj Sreepuram 2020-08-23 18:10:36 +05:30
parent 62e70ddcc8
commit 37335c413a

View file

@ -13,7 +13,7 @@ const runSDK = ({ baseUrl, websiteToken }) => {
websiteToken,
locale: chatwootSettings.locale,
type: getBubbleView(chatwootSettings.type),
launcherTitle: window.chatwootSettings.launcherTitle || '',
launcherTitle: chatwootSettings.launcherTitle || '',
toggle() {
IFrameHelper.events.toggleBubble();