Skip to content

Commit

Permalink
Merge pull request #6546 from alexdetsch/master
Browse files Browse the repository at this point in the history
Added download attribute to Download context menu option
  • Loading branch information
jasongrout committed Jun 12, 2019
2 parents a449f28 + fdb9aff commit 9e42176
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 9e42176

Please sign in to comment.