chore: Allow Self Hosted Instances to use Support Inbox within Dashboard for Agents (#3907)

This commit is contained in:
Sagar
2022-02-04 05:28:53 +01:00
committed by GitHub
parent 9454c6b14f
commit 32673ea8b4

View File

@@ -67,7 +67,7 @@
<script>
window.chatwootSettings = { hideMessageBubble: true, position: 'left' };
(function(d,t) {
var BASE_URL="https://app.chatwoot.com";
var BASE_URL='<%= ENV.fetch('FRONTEND_URL', 'https://app.chatwoot.com') %>';
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=BASE_URL+"/packs/js/sdk.js"; g.defer=true; g.async=true;
s.parentNode.insertBefore(g,s);