remove input filter on iOS mobile
This commit is contained in:
parent
c8c789b723
commit
8b62e96ff0
1 changed files with 10 additions and 0 deletions
|
|
@ -326,6 +326,16 @@ function setup_keybd_nav() {
|
|||
sdb.gdpr = Date.now();
|
||||
};
|
||||
|
||||
// fix file input on iOS
|
||||
try {
|
||||
if (/iPad|iPhone|iPod/.test(navigator.userAgent) ||
|
||||
(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) {
|
||||
$('load-file').removeAttribute('accept');
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('iOS remediation fail', e);
|
||||
}
|
||||
|
||||
// add app name hover info
|
||||
$('app-info').innerText = version;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue