mirror of
https://github.com/bitwarden/browser
synced 2026-02-25 00:53:22 +00:00
Added new features
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user