SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.Trengo = window.Trengo || {};
  2. window.Trengo.key = '[key]';
  3. window.Trengo.on_ready = function() {
  4.     if (window.location.pathname.indexOf('/page-without-widget') === -1 || window.Trengo.Api.Widget.is_chatting()) {
  5.         window.Trengo.Api.Widget.render();
  6.     }
  7.  
  8.     if (window.location.hash.startsWith('#open-')) {
  9.         window.Trengo.Api.Widget.open(window.location.hash.split('#open-')[1]);
  10.     }
  11. };
  12. (function(d, script) {
  13.     script = d.createElement('script');
  14.     script.type = 'text/javascript';
  15.     script.async = true;
  16.     script.src = 'https://cdn.widget.trengo.eu/embed.js';;
  17.     d.getElementsByTagName('head')[0].appendChild(script);
  18. }(document));
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top