Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ua = navigator.userAgent || navigator.vendor || window.opera;
- // if Facebook in app browser
- if (ua.indexOf("FBAN") > -1 || ua.indexOf("FBAV") > -1) {
- // if Android OS
- if (ua.match(/Android/i)) {
- // redirect to URL that opens the current URL on Chrome.
- window.location.replace("googlechrome://navigate?url=" + encodeURI(window.location));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement