PrayogiSoftware

Open Crisp Otomatis

Jan 18th, 2021
551
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const queryString = window.location.search;
  2. const urlParams = new URLSearchParams(queryString);
  3.  
  4. const opencrisp = urlParams.get('opencrisp');
  5. if(opencrisp == "opened"){
  6.     $crisp.push(['do', 'chat:open']);
  7.     console.log('Open');
  8. }else{
  9.     console.log('Close');
  10. }
RAW Paste Data