Hiding the widget on mobile devices via API Follow

If you want to hide the widget from visitors using mobile devices, you can paste the following code onto your website. However, make sure to place your widget code at the specified location below.
<script type="text/javascript">
var ua = navigator.userAgent.toLowerCase(),
platform = navigator.platform.toLowerCase();
platformName = ua.match(/ip(?:ad|od|hone)/) ? 'ios' : (ua.match(/(?:webos|android)/) || platform.match(/mac|win|linux/) || ['other'])[0],
isMobile = /ios|android|webos/.test(platformName);
if (!isMobile) {
   //place your live chat code here without the <script> tags


Have more questions? Submit a request


Please sign in to leave a comment.

Powered by Zendesk