1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 13:38:26 +01:00

simplify JS snippet slightly

This commit is contained in:
Chris Rebert 2013-12-15 19:00:37 -08:00
parent a2f7c3015e
commit 4db1d69e98

View File

@ -884,7 +884,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
{% highlight html %}
<script>
var nua = navigator.userAgent;
var isAndroid = ((nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1) && !(nua.indexOf('Chrome') > -1));
var isAndroid = (nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1 && nua.indexOf('Chrome') === -1);
if (isAndroid) {
$('select.form-control').removeClass('form-control').css('width', '100%');
}