Skip to content

Commit

Permalink
Add Reo.dev script to ContentHub third parties
Browse files Browse the repository at this point in the history
  • Loading branch information
fbraure committed Jan 27, 2025
1 parent 1ee87f8 commit a5afde2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/_components/shared/third_parties.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<script src="https://cdn.usefathom.com/script.js" data-site="SBIGOMQN" defer></script>
<script>
window.intercomSettings = { app_id: "hxcxcbgc" };
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/APP_ID';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()
</script>
<% if ENV["BRIDGETOWN_ENV"] == "production" %>
<script>
window.intercomSettings = { app_id: "hxcxcbgc" };
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/APP_ID';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()
</script>
<script type="text/javascript">
!function(){var e,t,n;e="<%= ENV.fetch("REO_DEV_CLIENT_ID", "") %>",t=function(){Reo.init({clientID:"<%= ENV.fetch("REO_DEV_CLIENT_ID", "") %>"})},(n=document.createElement("script")).src="https://static.reo.dev/"+e+"/reo.js",n.defer=!0,n.onload=t,document.head.appendChild(n)}();
</script>
<% end %>

0 comments on commit a5afde2

Please sign in to comment.