b7c70c79 by RSA

28823_chatbot_vuzo_link

1 parent ba0e8abc
......@@ -31,6 +31,10 @@
let btutilAsset = document.createElement('script');
btutilAsset.setAttribute('src', "%REACT_APP_BTUTIL_ASSET_URL%" + ver);
document.head.appendChild(btutilAsset);
let vuzoScript = document.createElement("script")
vuzoScript.setAttribute("src", "%REACT_APP_START_SERVER_URL%" + ver);
document.head.appendChild(vuzoScript);
</script>
</head>
<body>
......@@ -47,24 +51,6 @@
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
<script>
const hostname = window.location.hostname;
const segments = hostname.split('.');
const firstSegment = segments[0];
let server = '';
if(firstSegment === 'dev'){
server = '//dev.'
} else if (firstSegment === 'staging'){
server = '//staging.'
} else {
server = '//'
}
var script = document.createElement("script")
script.setAttribute("src", server + `start.ai-pro.org/snippets/com.global.vuzo.js`)
document.head.appendChild(script)
</script>
<script>
window.onload = function() {
displayVuzo();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!