1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-25 00:53:22 +00:00

Added new features

This commit is contained in:
Todd Martin
2025-05-10 15:28:34 -04:00
parent ba824c87d1
commit 8d53b10c36
7 changed files with 14 additions and 27 deletions

View File

@@ -12,7 +12,7 @@ export class WebFileDownloadService implements FileDownloadService {
download(request: FileDownloadRequest): void {
const builder = new FileDownloadBuilder(request);
const a = window.document.createElement("a");
if (!this.platformUtilsService.isSafari()) {
if (!(this.platformUtilsService.isSafari() || this.platformUtilsService.isDuckDuckGo())) {
a.rel = "noreferrer";
a.target = "_blank";
}

View File

@@ -88,6 +88,10 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
return this.getDevice() === DeviceType.SafariBrowser;
}
isDuckDuckGo(): boolean {
return this.getDevice() === DeviceType.DuckDuckGoBrowser;
}
isMacAppStore(): boolean {
return false;
}