mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-22 14:05:23 +00:00
feat: Support card message postback event as widget event (#11133)
Fixes https://github.com/chatwoot/chatwoot/issues/5956 Fixes https://github.com/chatwoot/chatwoot/issues/1895
This commit is contained in:
@@ -203,6 +203,13 @@ export const IFrameHelper = {
|
||||
updateCampaignReadStatus(window.$chatwoot.baseDomain);
|
||||
},
|
||||
|
||||
postback(data) {
|
||||
dispatchWindowEvent({
|
||||
eventName: 'chatwoot:postback',
|
||||
data,
|
||||
});
|
||||
},
|
||||
|
||||
toggleBubble: state => {
|
||||
let bubbleState = {};
|
||||
if (state === 'open') {
|
||||
|
||||
Reference in New Issue
Block a user