mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 12:57:14 +00:00
(js) Fix download of exported folders under iOS
Whenever possible, we no longer rely on the FileSaver.js library to download zip archives. Instead, we do a simple GET on the resource by changing the window location.
This commit is contained in:
1 parent
0c5b5446dd
commit
c966ad60e7
5 files changed
+23
-6
No files matched your search
@@ -723,7 +723,12 @@
|
||||
data = { uids: _.map(selectedCards, 'id') };
|
||||
}
|
||||
|
||||
return AddressBook.$$resource.download(this.id, 'export', data, options);
|
||||
if (data) {
|
||||
return AddressBook.$$resource.download(this.id, 'export', data, options);
|
||||
}
|
||||
else {
|
||||
return AddressBook.$$resource.open(this.id, 'export', data, options);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user