Added mobile browser detection to disable FileReader controls on mobile devices
While support for local disk images and other local resources can work on some mobile devices, I don't think the use cases warrant the extra (largely wasted) screen space
This commit is contained in:
parent
c2c387a06d
commit
6eb3911a67
4 changed files with 23 additions and 13 deletions
|
|
@ -129,9 +129,9 @@ C1PSerialPort.prototype.setBinding = function(sHTMLType, sBinding, control)
|
|||
|
||||
case "mountSerial":
|
||||
/*
|
||||
* Check for availability of FileReader
|
||||
* Check for non-mobile (desktop) browser and the availability of FileReader
|
||||
*/
|
||||
if (window && 'FileReader' in window) {
|
||||
if (!web.isMobile() && window && 'FileReader' in window) {
|
||||
this.bindings[sBinding] = control;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue