From eae09f5f8ceb626ef1dd0e074647133f40689273 Mon Sep 17 00:00:00 2001 From: jacaru Date: Thu, 10 Aug 2017 21:09:48 +0200 Subject: [PATCH] Fix iOS download --- multidownload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multidownload.js b/multidownload.js index a1881b8d..6fe7f9bf 100644 --- a/multidownload.js +++ b/multidownload.js @@ -48,7 +48,7 @@ define(['browser'], function (browser) { throw new Error('`urls` required'); } - if (typeof document.createElement('a').download === 'undefined') { + if (!browser.iOS && typeof document.createElement('a').download === 'undefined') { return fallback(urls); } @@ -63,4 +63,4 @@ define(['browser'], function (browser) { download(url); }); }; -}); \ No newline at end of file +});