Skip to content

Commit

Permalink
Merge pull request #352 from billba/master
Browse files Browse the repository at this point in the history
fix samples
  • Loading branch information
billba authored Feb 27, 2017
2 parents 222c625 + 5ca6c39 commit 4a480b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions samples/backchannel/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ <h2 style="font-family:Segoe UI;">Type a color into the WebChat!</h2>
name: params["botname"] || 'botname'
};

window['botchatDebug'] = params['debug'];
window['botchatDebug'] = params['debug'] && params['debug'] === "true";

var botConnection = new BotChat.DirectLine({
secret: params['s'],
token: params['t'],
domain: params['domain'],
webSocket: params['webSocket'] // defaults to true
webSocket: params['webSocket'] && params['webSocket'] === "true" // defaults to true
});

BotChat.App({
Expand Down
4 changes: 2 additions & 2 deletions samples/standalone/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
name: params["botname"] || 'botname'
};

window['botchatDebug'] = params['debug'];
window['botchatDebug'] = params['debug'] && params['debug'] === "true";

BotChat.App({
directLine: {
secret: params['s'],
token: params['t'],
domain: params['domain'],
webSocket: params['webSocket'] // defaults to true
webSocket: params['webSocket'] && params['webSocket'] === "true" // defaults to true
},
user: user,
bot: bot,
Expand Down

0 comments on commit 4a480b9

Please sign in to comment.