From 15b71295bd8b77d094f1ad289535fc25448a8821 Mon Sep 17 00:00:00 2001 From: Szymon Maj Date: Thu, 13 Jun 2013 11:19:36 +0200 Subject: [PATCH] support for Mobile Chrome (android 4.0+) --- src/Scripts/jquery.fileDownload.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Scripts/jquery.fileDownload.js b/src/Scripts/jquery.fileDownload.js index 44ea4df..bddf41e 100644 --- a/src/Scripts/jquery.fileDownload.js +++ b/src/Scripts/jquery.fileDownload.js @@ -129,6 +129,7 @@ $.extend({ var userAgent = (navigator.userAgent || navigator.vendor || window.opera).toLowerCase(); var isIos; //has full support of features in iOS 4.0+, uses a new window to accomplish this. + var isChrome; //mobile chrome does not need to be treated like the stock android browser var isAndroid; //has full support of GET features in 4.0+ by using a new window. Non-GET is completely unsupported by the browser. See above for specifying a message. var isOtherMobileBrowser; //there is no way to reliably guess here so all other mobile devices will GET and POST to the current window. @@ -136,6 +137,10 @@ $.extend({ isIos = true; + } else if (userAgent.indexOf('chrome') !== -1) { + + isChrome = true; + } else if (userAgent.indexOf('android') !== -1) { isAndroid = true;