diff --git a/app/javascript/packs/sdk.js b/app/javascript/packs/sdk.js index d666b864b..bd2d718aa 100755 --- a/app/javascript/packs/sdk.js +++ b/app/javascript/packs/sdk.js @@ -27,6 +27,10 @@ export const hasUserKeys = user => REQUIRED_USER_KEYS.reduce((acc, key) => acc || !!user[key], false); const runSDK = ({ baseUrl, websiteToken }) => { + if (window.$chatwoot) { + return; + } + const chatwootSettings = window.chatwootSettings || {}; window.$chatwoot = { baseUrl,