File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ( {
Original file line number Diff line number Diff line change 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 ,
You can’t perform that action at this time.
0 commit comments