From 164e44618aa4019574d16310bf22b5d31f9db3a2 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 30 Jun 2014 19:37:51 +0400 Subject: [PATCH] Added possible improvement for mobile downloads --- app/js/lib/ng_utils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index 0bf4d104..fb9a99f6 100644 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -256,6 +256,10 @@ angular.module('izhukov.utils', []) } function downloadFile (url, mimeType, fileName) { + // if (Config.Navigator.mobile) { + // window.open(url, '_blank'); + // return; + // } var anchor = $('Download') .css({position: 'absolute', top: 1, left: 1}) .attr('href', url)