mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
[PM-21724] - add safari and firefox to list of potential browser vendors (#14857)
* add safari and firefox to list of potential browser vendors * use browserClientVendorExtended * handle unknown browser client vendor
This commit is contained in:
@@ -334,11 +334,24 @@ export class AutofillComponent implements OnInit {
|
||||
return null;
|
||||
}
|
||||
|
||||
get browserClientVendorExtended() {
|
||||
if (this.browserClientVendor !== BrowserClientVendors.Unknown) {
|
||||
return this.browserClientVendor;
|
||||
}
|
||||
if (this.platformUtilsService.isFirefox()) {
|
||||
return "Firefox";
|
||||
}
|
||||
if (this.platformUtilsService.isSafari()) {
|
||||
return "Safari";
|
||||
}
|
||||
return BrowserClientVendors.Unknown;
|
||||
}
|
||||
|
||||
get spotlightButtonText() {
|
||||
if (this.browserClientVendor === BrowserClientVendors.Unknown) {
|
||||
if (this.browserClientVendorExtended === BrowserClientVendors.Unknown) {
|
||||
return this.i18nService.t("turnOffAutofill");
|
||||
}
|
||||
return this.i18nService.t("turnOffBrowserAutofill", this.browserClientVendor);
|
||||
return this.i18nService.t("turnOffBrowserAutofill", this.browserClientVendorExtended);
|
||||
}
|
||||
|
||||
async dismissSpotlight() {
|
||||
|
||||
Reference in New Issue
Block a user