1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-24 04:04:24 +00:00

docs(update-auth-approving-clients): [PM-17111] Add Browser to List of Approving Clients - Updated comments. (#14707)

This commit is contained in:
Patrick-Pimentel-Bitwarden
2025-05-12 09:29:11 -04:00
committed by GitHub
parent 4d15f2d43c
commit 87b875c48b

View File

@@ -26,6 +26,10 @@ export abstract class BrowserPlatformUtilsService implements PlatformUtilsServic
return this.deviceCache;
}
// ORDERING MATTERS HERE
// Ordered from most specific to least specific. We try to discern the greatest detail
// for the type of extension the user is on by checking specific cases first and as we go down
// the list we hope to catch all by the most generic clients they could be on.
if (BrowserPlatformUtilsService.isFirefox()) {
this.deviceCache = DeviceType.FirefoxExtension;
} else if (BrowserPlatformUtilsService.isOpera(globalContext)) {