Add rel noreferrer to download link (#8006)

This commit is contained in:
Oscar Hinton 2024-02-20 11:13:18 +01:00 committed by GitHub
parent d4968bb225
commit e459e30c50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ export class WebFileDownloadService implements FileDownloadService {
if (builder.downloadMethod === "save") {
a.download = request.fileName;
} else if (!this.platformUtilsService.isSafari()) {
a.rel = "noreferrer";
a.target = "_blank";
}
a.href = URL.createObjectURL(builder.blob);