feat: Allow user to change the bubble title using SDK (#1155)

- Allow user to change the bubble title using SDK
- Add docs for enabling expanded bubble
This commit is contained in:
Pranav Raj S
2020-08-19 22:24:02 +05:30
committed by GitHub
parent 662bb882f7
commit e8912655a5
3 changed files with 11 additions and 1 deletions

View File

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

View File

@@ -113,7 +113,7 @@ export const IFrameHelper = {
},
setBubbleLabel(message) {
setBubbleText(message.label);
setBubbleText(window.$chatwoot.launcherTitle || message.label);
},
toggleBubble: () => {