Skip to content

Commit

Permalink
Add missing web extension, fixes #42
Browse files Browse the repository at this point in the history
  • Loading branch information
Bungeefan committed Jul 6, 2023
1 parent b7e050b commit fb6f1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/file_saver_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class FileSaverWeb {
AnchorElement anchor = htmlDocument.createElement('a') as AnchorElement;
anchor.href = url;
anchor.style.display = fileModel.name + fileModel.ext;
anchor.download = fileModel.name;
anchor.download = fileModel.name + fileModel.ext;
document.body!.children.add(anchor);
anchor.click();
document.body!.children.remove(anchor);
Expand Down

0 comments on commit fb6f1d7

Please sign in to comment.