feat: Add an SDK method for opening conversation in popout window (#4232)
This commit is contained in:
@@ -31,6 +31,14 @@ const runSDK = ({ baseUrl, websiteToken }) => {
|
||||
IFrameHelper.events.toggleBubble(state);
|
||||
},
|
||||
|
||||
popoutChatWindow() {
|
||||
IFrameHelper.events.popoutChatWindow({
|
||||
baseUrl: window.$chatwoot.baseUrl,
|
||||
websiteToken: window.$chatwoot.websiteToken,
|
||||
locale: window.$chatwoot.locale,
|
||||
});
|
||||
},
|
||||
|
||||
setUser(identifier, user) {
|
||||
if (typeof identifier !== 'string' && typeof identifier !== 'number') {
|
||||
throw new Error('Identifier should be a string or a number');
|
||||
|
||||
Reference in New Issue
Block a user