Fix intercom.
parent
e9cc825896
commit
edf0aa77e4
|
@ -436,9 +436,9 @@
|
|||
</div>
|
||||
|
||||
{% if request.user.is_authenticated and not debug %}
|
||||
<script id="IntercomSettingsScriptTag">
|
||||
var intercomSettings = {
|
||||
app_id: 'bde5yvi6',
|
||||
<script>
|
||||
window.intercomSettings = {
|
||||
app_id: 'sajf131y',
|
||||
user_id: {{ request.user.id }},
|
||||
user_hash: '{{ request.user.id|intercom_sha_256 }}',
|
||||
email: '{{ request.user.email }}',
|
||||
|
@ -453,22 +453,7 @@
|
|||
}
|
||||
};
|
||||
</script>
|
||||
<script>
|
||||
(function() {
|
||||
function async_load() {
|
||||
var s = document.createElement('script');
|
||||
s.type = 'text/javascript'; s.async = true;
|
||||
s.src = 'https://static.intercomcdn.com/intercom.v1.js';
|
||||
var x = document.getElementsByTagName('script')[0];
|
||||
x.parentNode.insertBefore(s, x);
|
||||
}
|
||||
if (window.attachEvent) {
|
||||
window.attachEvent('onload', async_load);
|
||||
} else {
|
||||
window.addEventListener('load', async_load, false);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<script>(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/sajf131y';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 request.user.is_authenticated %}
|
||||
{% block olark %}
|
||||
<!-- begin olark code -->
|
||||
|
|
Loading…
Reference in New Issue