Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var u = navigator.userAgent,
- ua = navigator.userAgent.toLowerCase(),
- isLineApp = u.indexOf("Line") > -1, // Line 內建瀏覽器
- isFbApp = u.indexOf("FBAV") > -1, // FB App 內建瀏覽器
- isWeixinApp = ua.match(/MicroMessenger/i) == "micromessenger"; // 微信內建瀏覽器
- if (isLineApp) {
- webShareImp();
- }
- if (isFbApp) {
- webShareImp();
- }
- if (isWeixinApp) {
- webShareImp();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement