Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.32 KB

livechatinc.md

File metadata and controls

53 lines (43 loc) · 1.32 KB
title contributors issues
LiveChat
user name
maddijoyce
Maddi Joyce
user name
reed
Nick Reed
repo number
reed/turbolinks-compatibility
21

LiveChat (livechatinc) Plugin

livechatinc.com

Official Implementation

<body>
  <script>
  var __lc = {};
  __lc.license = #######;

  (function() {
      var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
      lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
  })();
  </script>
</body>

Solution

Replace the javascript with the following:

var __lc = {};
__lc.license = #######;

(function() {
    delete(window.LC_API);
    delete(window.LC_Invite);
    delete(window.__lc_iframe_current_skill);
    delete(window.__lc_inited);
    delete(window.__lc_lang);
    var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
    lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
    var s = document.body.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
})();