Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.Trengo = window.Trengo || {};
- window.Trengo.key = '[key]';
- window.Trengo.on_ready = function() {
- if (window.location.pathname.indexOf('/page-without-widget') === -1 || window.Trengo.Api.Widget.is_chatting()) {
- window.Trengo.Api.Widget.render();
- }
- if (window.location.hash.startsWith('#open-')) {
- window.Trengo.Api.Widget.open(window.location.hash.split('#open-')[1]);
- }
- };
- (function(d, script) {
- script = d.createElement('script');
- script.type = 'text/javascript';
- script.async = true;
- script.src = 'https://cdn.widget.trengo.eu/embed.js';;
- d.getElementsByTagName('head')[0].appendChild(script);
- }(document));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement