Feature: Customise the position of messenger (#767)

Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
This commit is contained in:
Pranav Raj S
2020-04-25 23:18:00 +05:30
committed by GitHub
parent 94192e8184
commit 6770126de0
8 changed files with 85 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ const runSDK = ({ baseUrl, websiteToken }) => {
hasLoaded: false,
hideMessageBubble: chatwootSettings.hideMessageBubble || false,
isOpen: false,
position: chatwootSettings.position || 'right',
position: chatwootSettings.position === 'left' ? 'left' : 'right',
websiteToken,
toggle() {