Skip to content

Commit

Permalink
Merge pull request #526 from debtcollective/development
Browse files Browse the repository at this point in the history
fix: chatwoot to appear on every page
  • Loading branch information
hissingpanda authored Aug 25, 2021
2 parents 76bd83b + 1d47a6b commit 94f8ab5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
<%= render 'layouts/header' %>
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>

<%= render 'shared/chatwoot'%>
<%= render 'shared/analytics_scripts'%>
</head>

<body class="with-header">
<%= render 'shared/header' %>
<%= render 'shared/chatwoot'%>
<div class="flex flex-col md:flex-row h-screen bg-white">
<%= render 'shared/sidebar' %>
<div class="flex flex-col flex-1 mx-auto">
Expand Down
6 changes: 5 additions & 1 deletion app/views/shared/_chatwoot.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
g.onload=function(){
window.chatwootSDK.run({
websiteToken: '<%= ENV['CHATWOOT_TOKEN'] %>',
baseUrl: BASE_URL
baseUrl: BASE_URL,
})
}
window.chatwootSettings = {
type: 'expanded_bubble',
launcherTitle: 'Chat with us'
}
})(document,"script");
</script>
<!-- End Chatwoot Integration -->

0 comments on commit 94f8ab5

Please sign in to comment.