frontend/.pnpm-store/v3/files/6c/39d04d4bcfeae213477530a3359a258972a246ad95e302d5813f5c9524598b4ad5b064d2176a677b7d7dea9bc5f83317872a6766c3436cb1b1b678fb40cca4

14 lines
402 B
Plaintext

// Detects whether input type="file" is available on the platform
// E.g. iOS < 6 and some android version don't support this
// It's useful if you want to hide the upload feature of your app on devices that
// don't support it (iphone, ipad, etc).
Modernizr.addTest('fileinput', function() {
var elem = document.createElement('input');
elem.type = 'file';
return !elem.disabled;
});