este script redirige a los usuarios del navegador de Facebook a Google Chrome en dispositivos Android, necesito que haga lo mismo en:
aquí está el código en ejecución ahora:
<script> function isFacebookApp() { var ua = navigator.userAgent || navigator.vendor || window.opera; return (ua.indexOf("FBAV") > -1) || (ua.indexOf("FBAN") > -1); } if (isFacebookApp()) { var currentLink = location.href; if (currentLink.indexOf('https') > -1) { var currentLink = currentLink.replace('https://', ''); currentLink = currentLink.replace('www.', ''); var chromeLink = "intent://" + currentLink + "#Intent;scheme=https;package=com.android.chrome;end"; window.location.href = chromeLink; } if (currentLink.indexOf('http') > -1) { var currentLink = currentLink.replace('http://', ''); currentLink = currentLink.replace('www.', ''); var chromeLink = "intent://" + currentLink + "#Intent;scheme=http;package=com.android.chrome;end"; window.location.href = chromeLink; } } </script>Gracias