Answers for "jquery detect which page i am"

0

jquery detect which page i am

<script>
  window.homepagecheck = function() {
    var check = false;
    if(document.location.pathname === "/"){
      check=true;
      }
    return check;
  }


  if(window.homepagecheck()){
    setTimeout(function() {
      __flowai_webclient_app.open()
      }, 5000) // 5 secs
      
    window.__flowai_webclient_autoTriggerEvent = 'START_CHAT'
  }

</script>
Posted by: Guest on March-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language