import { h, Component } from 'preact'; import { IConfiguration } from '../typings'; export default class ChatFrame extends Component { shouldComponentUpdate() { // do not re-render via diff: return false; } render({iFrameSrc, isMobile, conf}: IChatFrameProps,{}) { let dynamicConf = window.botmanWidget || {}; // these configuration are loaded when the chat frame is opened let encodedConf = encodeURIComponent(JSON.stringify({...conf, ...dynamicConf})); return (