admin:online-platform-cms:3rd-party-scripts:freshchat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
admin:online-platform-cms:3rd-party-scripts:freshchat [2020/06/18 09:44] algirdas-matasadmin:online-platform-cms:3rd-party-scripts:freshchat [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 9: Line 9:
   function initFreshChat() {   function initFreshChat() {
     window.fcWidget.init({     window.fcWidget.init({
 +      config: {
 +        "cssNames": {
 +          "widget": "custom_fc_frame"
 +        }
 +      },
       token: freshchattoken,       token: freshchattoken,
       host: freshchathost       host: freshchathost
Line 16: Line 21:
  
   document.body.addEventListener("userLogIn", function(e){   document.body.addEventListener("userLogIn", function(e){
-    const user = e.detail;+    var user = e.detail;
     window.fcWidget.setExternalId(user.id);     window.fcWidget.setExternalId(user.id);
     window.fcWidget.user.setFirstName(user.displayName);     window.fcWidget.user.setFirstName(user.displayName);
Line 33: Line 38:
 <code> <code>
 <style> <style>
-.fc-widget-small {+.custom_fc_frame {
   margin: a b c d   margin: a b c d
 } }
 +.custom_fc_frame.fc-open { margin: 0 }
 </style> </style>
 </code> </code>
  • admin/online-platform-cms/3rd-party-scripts/freshchat.1592473454.txt.gz
  • Last modified: 2020/06/18 09:44
  • (external edit)