mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-31 19:17:48 +00:00
Bug: Fix webwidget.triggered event (#750)
This commit is contained in:
@@ -88,11 +88,11 @@ export const IFrameHelper = {
|
||||
|
||||
toggleBubble: () => {
|
||||
onBubbleClick();
|
||||
if (window.$chatwoot.isOpen) {
|
||||
IFrameHelper.pushEvent('webwidget.triggered');
|
||||
}
|
||||
},
|
||||
},
|
||||
pushEvent: eventName => {
|
||||
IFrameHelper.sendMessage('push-event', { eventName });
|
||||
},
|
||||
onLoad: ({ widgetColor }) => {
|
||||
const iframe = IFrameHelper.getAppFrame();
|
||||
iframe.style.visibility = '';
|
||||
|
||||
Reference in New Issue
Block a user