SHARE
TWEET

Untitled

a guest Oct 16th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export default () => {
  2.   const userAgent = window.navigator.userAgent.toLowerCase();
  3.   switch (true) {
  4.     case userAgent.indexOf("iphone") !== -1:
  5.     case userAgent.indexOf("ipad") !== -1:
  6.     case userAgent.indexOf("android") !== -1:
  7.       return true;
  8.     default:
  9.       return false;
  10.   }
  11. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top