Skip to content

Commit 4a480b9

Browse files
authored
Merge pull request #352 from billba/master
fix samples
2 parents 222c625 + 5ca6c39 commit 4a480b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/backchannel/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ <h2 style="font-family:Segoe UI;">Type a color into the WebChat!</h2>
5959
name: params["botname"] || 'botname'
6060
};
6161

62-
window['botchatDebug'] = params['debug'];
62+
window['botchatDebug'] = params['debug'] && params['debug'] === "true";
6363

6464
var botConnection = new BotChat.DirectLine({
6565
secret: params['s'],
6666
token: params['t'],
6767
domain: params['domain'],
68-
webSocket: params['webSocket'] // defaults to true
68+
webSocket: params['webSocket'] && params['webSocket'] === "true" // defaults to true
6969
});
7070

7171
BotChat.App({

samples/standalone/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@
4444
name: params["botname"] || 'botname'
4545
};
4646

47-
window['botchatDebug'] = params['debug'];
47+
window['botchatDebug'] = params['debug'] && params['debug'] === "true";
4848

4949
BotChat.App({
5050
directLine: {
5151
secret: params['s'],
5252
token: params['t'],
5353
domain: params['domain'],
54-
webSocket: params['webSocket'] // defaults to true
54+
webSocket: params['webSocket'] && params['webSocket'] === "true" // defaults to true
5555
},
5656
user: user,
5757
bot: bot,

0 commit comments

Comments
 (0)