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}</script>
Comments
1 comment
Doesn't work for me.
Please sign in to leave a comment.