BotFramework-WebChat: Code not working in Sharepoint Online and IE 11
Hello,
So i have deployed custom webchat following this documentation here
Here’s the code:
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.botframework.com/botframework-webchat/master/webchat.js"></script>
<style>
html, body { height: 100% }
body { margin: 0 }
#webchat {
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div id="webchat" role="main"></div>
<script>
window.WebChat.renderWebChat({
directLine: window.WebChat.createDirectLine({ token: 'Token goes here' }),
styleOptions: {
hideUploadButton: true,
bubbleBackground: 'rgba(0, 0, 255, .1)',
bubbleFromUserBackground: 'rgba(0, 255, 0, .1)',
botAvatarInitials: 'FB',
userAvatarInitials: 'YOU',
userAvatarImage: ''
}
}, document.getElementById('webchat'));
</script>
</body>
</html>
I don’t know if there is something missing here or what
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (6 by maintainers)
Hey @Rykimaruh!!
Can you post a screenshot of the error in your console?
Weird, I will investigate and try this out