Commit 4db1d69e authored by Chris Rebert's avatar Chris Rebert
Browse files

simplify JS snippet slightly

parent a2f7c301
Showing with 1 addition and 1 deletion
+1 -1
...@@ -884,7 +884,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) { ...@@ -884,7 +884,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
{% highlight html %} {% highlight html %}
<script> <script>
var nua = navigator.userAgent; 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) { if (isAndroid) {
$('select.form-control').removeClass('form-control').css('width', '100%'); $('select.form-control').removeClass('form-control').css('width', '100%');
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment