Don't load olark if the host doesn't specify prod.
This commit is contained in:
parent
791867dabe
commit
d0e62d2099
1 changed files with 2 additions and 0 deletions
|
@ -123,6 +123,7 @@ var isProd = document.location.hostname === 'quay.io';
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- begin olark code -->
|
<!-- begin olark code -->
|
||||||
|
{% if request.host == 'quay.io' %}
|
||||||
<script data-cfasync="false" type='text/javascript'>/*<![CDATA[*/window.olark||(function(c){var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",z=c.name,r="load";var nt=function(){
|
<script data-cfasync="false" type='text/javascript'>/*<![CDATA[*/window.olark||(function(c){var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",z=c.name,r="load";var nt=function(){
|
||||||
f[z]=function(){
|
f[z]=function(){
|
||||||
(a.s=a.s||[]).push(arguments)};var a=f[z]._={
|
(a.s=a.s||[]).push(arguments)};var a=f[z]._={
|
||||||
|
@ -141,6 +142,7 @@ var isProd = document.location.hostname === 'quay.io';
|
||||||
loader: "static.olark.com/jsclient/loader0.js",name:"olark",methods:["configure","extend","declare","identify"]});
|
loader: "static.olark.com/jsclient/loader0.js",name:"olark",methods:["configure","extend","declare","identify"]});
|
||||||
/* custom configuration goes here (www.olark.com/documentation) */
|
/* custom configuration goes here (www.olark.com/documentation) */
|
||||||
olark.identify('1189-336-10-9918');/*]]>*/</script><noscript><a href="https://www.olark.com/site/1189-336-10-9918/contact" title="Contact us" target="_blank">Questions? Feedback?</a> powered by <a href="http://www.olark.com?welcome" title="Olark live chat software">Olark live chat software</a></noscript>
|
olark.identify('1189-336-10-9918');/*]]>*/</script><noscript><a href="https://www.olark.com/site/1189-336-10-9918/contact" title="Contact us" target="_blank">Questions? Feedback?</a> powered by <a href="http://www.olark.com?welcome" title="Olark live chat software">Olark live chat software</a></noscript>
|
||||||
|
{% endif %}
|
||||||
<!-- end olark code -->
|
<!-- end olark code -->
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Reference in a new issue