From 37335c413a4e7d4993a942b56426e9480d8b4a3f Mon Sep 17 00:00:00 2001 From: Pranav Raj Sreepuram Date: Sun, 23 Aug 2020 18:10:36 +0530 Subject: [PATCH] Fix `window.chatwootSettings` is undefined --- app/javascript/packs/sdk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/packs/sdk.js b/app/javascript/packs/sdk.js index ea24e7335..a57b83bb7 100755 --- a/app/javascript/packs/sdk.js +++ b/app/javascript/packs/sdk.js @@ -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();