Skip to content

Commit

Permalink
Added download attribute to Download context menu option
Browse files Browse the repository at this point in the history
  • Loading branch information
ifesca research team committed Jun 12, 2019
1 parent f332ccd commit fdb9aff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/filebrowser/src/model.ts
Expand Up @@ -318,6 +318,7 @@ export class FileBrowserModel implements IDisposable {
document.body.appendChild(element);
element.setAttribute('href', url);
element.setAttribute('target', '_blank');
element.setAttribute('download', '');
element.click();
document.body.removeChild(element);
return void 0;
Expand Down

0 comments on commit fdb9aff

Please sign in to comment.