mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
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:
committed by
Maurizio Vitale
parent
fab8866d0c
commit
cf67a0c1b5
@@ -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) {
|
||||
|
Reference in New Issue
Block a user