bug fixes for thumbnails and Safari download (#1763)

- set ‘show thumbnail’ to true by default
- add support for safe downloads in Safari (upcoming 10.1 and TP)
This commit is contained in:
Denys Vuika
2017-03-24 13:27:51 +00:00
committed by Maurizio Vitale
parent fab8866d0c
commit cf67a0c1b5
3 changed files with 8 additions and 10 deletions

View File

@@ -32,17 +32,13 @@ export class ContentService {
return function (data, format, fileName) {
let blob = null;
if (format === 'blob') {
blob = data;
}
if (format === 'data') {
blob = new Blob([data], {type: 'octet/stream'});
if (format === 'blob' || format === 'data') {
blob = new Blob([data], { type: 'octet/stream' });
}
if (format === 'object' || format === 'json') {
let json = JSON.stringify(data);
blob = new Blob([json], {type: 'octet/stream'});
blob = new Blob([json], { type: 'octet/stream' });
}
if (blob) {