mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
add/remove created anchor to page when clicking it
This commit is contained in:
parent
c5bac554a7
commit
fe9df3977a
@ -102,7 +102,10 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
|
|||||||
a.href = uri;
|
a.href = uri;
|
||||||
a.target = '_blank';
|
a.target = '_blank';
|
||||||
a.rel = 'noreferrer noopener';
|
a.rel = 'noreferrer noopener';
|
||||||
|
a.classList.add('d-none');
|
||||||
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
|
document.body.removeChild(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
saveFile(win: Window, blobData: any, blobOptions: any, fileName: string): void {
|
saveFile(win: Window, blobData: any, blobOptions: any, fileName: string): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user