Feature: Customise the position of messenger (#767)
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
This commit is contained in:
parent
94192e8184
commit
6770126de0
8 changed files with 85 additions and 12 deletions
|
@ -15,7 +15,7 @@ export const notificationBubble = document.createElement('span');
|
|||
const bodyOverFlowStyle = document.body.style.overflow;
|
||||
|
||||
export const createBubbleIcon = ({ className, src, target }) => {
|
||||
target.className = className;
|
||||
target.className = `${className} woot-elements--${window.$chatwoot.position}`;
|
||||
const bubbleIcon = document.createElement('img');
|
||||
bubbleIcon.src = src;
|
||||
target.appendChild(bubbleIcon);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue