• Nate Hoffelmeyer
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

I have a deploy where I am trying to pop open the chat. This is current deploy:

      <script type='text/javascript' src='https://service.force.com/embeddedservice/5.0/esw.min.js'></script>
      <script type='text/javascript'>
          var initESW = function(gslbBaseURL) {
              embedded_svc.settings.displayHelpButton = true;
              embedded_svc.settings.language = ''; 

              embedded_svc.settings.enabledFeatures = ['LiveAgent'];
              embedded_svc.settings.entryFeature = 'LiveAgent';

              embedded_svc.init(
                  'https://na85.salesforce.com',
                  'https://myURL',
                  gslbBaseURL,
                  'code',
                  'Live_Chat',
                  {
                      baseLiveAgentContentURL: 'https://c.la2-c1-ph2.salesforceliveagent.com/content',
                      deploymentId: 'myID',
                      buttonId: 'buttonID',
                      baseLiveAgentURL: 'https://d.la2-c1-ph2.salesforceliveagent.com/chat',
                      eswLiveAgentDevName: 'EmbeddedServiceLiveAgent_Parent04I1U000000PKJLUA4_16d1d642827',
                      isOfflineSupportEnabled: true
                  }
              );
          };
        if (!window.embedded_svc) {
          var s = document.createElement('script');
          s.setAttribute('src', 'https://na85.salesforce.com/embeddedservice/5.0/esw.min.js');
          s.onload = function() {
            initESW(null);
          };
          document.body.appendChild(s);
        } else {
          initESW('https://service.force.com');
        }
      </script>

But I was wondering if it was possible to have a method that was like embedded_svc.settings.popOpenChat -= true because I want it to pop open not just live as the helpbutton.... Is this doable? If so, what's the right javascript API method?