Skip to content

Commit

Permalink
Matches #773 in v3 land.
Browse files Browse the repository at this point in the history
  • Loading branch information
SlexAxton committed Jan 7, 2013
1 parent 7785cac commit 843ff5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions feature-detects/forms/fileinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ define(['Modernizr', 'createElement'], function( Modernizr, createElement ) {
// don't support it (iphone, ipad, etc).

Modernizr.addTest('fileinput', function() {
if(navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0)|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|Pre\/1.2|Kindle\/(1.0|2.0|2.5|3.0))/)) {
return false;
}
var elem = createElement('input');
elem.type = 'file';
return !elem.disabled;
Expand Down

0 comments on commit 843ff5c

Please sign in to comment.