mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +00:00
Add rel noreferrer to download link (#8006)
This commit is contained in:
@@ -15,6 +15,7 @@ export class WebFileDownloadService implements FileDownloadService {
|
|||||||
if (builder.downloadMethod === "save") {
|
if (builder.downloadMethod === "save") {
|
||||||
a.download = request.fileName;
|
a.download = request.fileName;
|
||||||
} else if (!this.platformUtilsService.isSafari()) {
|
} else if (!this.platformUtilsService.isSafari()) {
|
||||||
|
a.rel = "noreferrer";
|
||||||
a.target = "_blank";
|
a.target = "_blank";
|
||||||
}
|
}
|
||||||
a.href = URL.createObjectURL(builder.blob);
|
a.href = URL.createObjectURL(builder.blob);
|
||||||
|
|||||||
Reference in New Issue
Block a user