SHARE
TWEET

Untitled

a guest Mar 18th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var u = navigator.userAgent,
  2. ua = navigator.userAgent.toLowerCase(),
  3. isLineApp = u.indexOf("Line") > -1, // Line 內建瀏覽器
  4. isFbApp = u.indexOf("FBAV") > -1, // FB App 內建瀏覽器
  5. isWeixinApp = ua.match(/MicroMessenger/i) == "micromessenger"; // 微信內建瀏覽器
  6. if (isLineApp) {
  7.     webShareImp();
  8. }
  9. if (isFbApp) {
  10.     webShareImp();
  11. }
  12. if (isWeixinApp) {
  13.     webShareImp();
  14. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top