Skip to content

Commit

Permalink
feat(Connection Data): Add connection data function to BlipChat
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Guilherme committed Oct 25, 2018
1 parent 21c410d commit 1996151
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>BlipChat Sandbox</h1>

<p>Use buttons bellow to see different behaviours of BLiP Chat</p>

<button onclick="buildChat()">Build SDK as GUEST (Default)</button>
<button onclick="buildChat({authType:BlipChat.GUEST_AUTH})">Build SDK as GUEST (Default)</button>
<button onclick="buildChat({authType:BlipChat.DEV_AUTH})">Build SDK as DEV</button>
<button onclick="changeSDK()">Change SDK Template</button>
<button onclick="toogleChat()">Toogle open chat</button>
Expand Down Expand Up @@ -124,9 +124,9 @@ <h1>For connection data tests (*optional)</h1>

if (authConfig && authConfig.authType == BlipChat.DEV_AUTH) {
authConfig.userIdentity = document.getElementById('userId').value ? document.getElementById('userId').value : '01684334-71c7-40e0-ad1a-5ce372de1a08', // Required
authConfig.userPassword = document.getElementById('userPass').value ? document.getElementById('userPass').value : 'MjU2OWNmOTItYmRjZi00Njg0LTljZDktMWQxNjQxYmYxMGU1', // Required
authConfig.userName = document.getElementById('fullName').value ? document.getElementById('fullName').value : '', // Optional
authConfig.userEmail = document.getElementById('email').value ? document.getElementById('email').value : ''// Optional
authConfig.userPassword = document.getElementById('userPass').value ? document.getElementById('userPass').value : 'MjU2OWNmOTItYmRjZi00Njg0LTljZDktMWQxNjQxYmYxMGU1', // Required
authConfig.userName = document.getElementById('fullName').value ? document.getElementById('fullName').value : '', // Optional
authConfig.userEmail = document.getElementById('email').value ? document.getElementById('email').value : ''// Optional
}

const environment = document.getElementById('environment').value ? document.getElementById('environment').value : 'homolog'
Expand Down

0 comments on commit 1996151

Please sign in to comment.