1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-09 21:20:27 +00:00

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

This commit is contained in:
Patrick Pimentel
2025-05-09 12:30:12 -04:00
parent 47d41f9289
commit 95edb437e7

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)) {