We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76b215e commit 0f14860Copy full SHA for 0f14860
src/lib/common/LiveChatEntry.svelte
@@ -37,6 +37,8 @@
37
showBubbleMsg = false;
38
receivedMsg = '';
39
}, receivedMsg?.length > 200 ? 8000 : 3000);
40
+ } else if (e.data.action == ChatAction.NewWindow && e.data.url) {
41
+ window.open(e.data.url, '_blank');
42
}
43
};
44
src/lib/helpers/enums.js
@@ -167,7 +167,8 @@ const chatAction = {
167
Logout: 'logout',
168
Chat: 'chat',
169
NewChat: 'new-chat',
170
- ReceiveNotification: 'receive-notification'
+ ReceiveNotification: 'receive-notification',
171
+ NewWindow: 'new-window',
172
173
export const ChatAction = Object.freeze(chatAction);
174
0 commit comments