My web bot widget is opening fullscreen by default. I am able to change some parameters using the FxoMessenger.setConfig (like color and heading) but I am not able to get the window to open as a sidebar.
I have tried:
fullscreen: false
sidebar: true
mode: ‘sidebar’
Any ideas?
Here is my current setup:
<script>
function messengerReady() {
// Wait until the messenger is fully
// ready, then send a message
FxoMessenger.on('stateChanged', function(state) {
if (state === 'connected') {
FxoMessenger.sendMessage('Hey!');
}
});
// Subscribe to all messages received,
// logging them to the console
FxoMessenger.on('messageReceived', function(message) {
console.log(message);
});
// Set the messenger to open fullscreen
FxoMessenger.setConfig({
headerText: 'Chat to Us',
color: '#4B0082',
mode: 'sidebar'
});
}
</script>
<script src="https://widget.flowxo.com/embed.js?callback=messengerReady" async defer data-fxo-widget="my-code"></script>