Fix minor web bugs
This commit is contained in:
parent
a0e841c9c6
commit
8cde337a58
3 changed files with 5 additions and 3 deletions
|
|
@ -18,7 +18,9 @@ extension MatrixFileExtension on MatrixFile {
|
|||
var element = html.document.createElement('a');
|
||||
element.setAttribute(
|
||||
'href', html.Url.createObjectUrlFromBlob(html.Blob([bytes])));
|
||||
element.setAttribute('target', "new");
|
||||
element.setAttribute('target', "_blank");
|
||||
element.setAttribute('rel', "noopener");
|
||||
element.setAttribute('download', fileName);
|
||||
element.setAttribute('type', mimeType);
|
||||
element.style.display = 'none';
|
||||
html.document.body.append(element);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue