diff --git a/plugin/plugin-redirect.js b/plugin/plugin-redirect.js index 904cedb5..6af22ddd 100644 --- a/plugin/plugin-redirect.js +++ b/plugin/plugin-redirect.js @@ -6,14 +6,14 @@ module.exports = function (context, options) { postBodyTags: [ { tagName: 'script', - innerHTML: ` window.intercomSettings = { - api_base: "https://api-iam.intercom.io", - app_id: "vzhpxwsk" - };`, - }, - { - tagName: 'script', - innerHTML: `(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/vzhpxwsk';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();`, + innerHTML: `var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();(function(){ + var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0]; + s1.async=true; + s1.src='https://embed.tawk.to/65f104fd9131ed19d9794995/1hoqnn0ae'; + s1.charset='UTF-8'; + s1.setAttribute('crossorigin','*'); + s0.parentNode.insertBefore(s1,s0); + })();`, }, ], preBodyTags: [