1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-08 03:23:50 +00:00

[PM-28446] Log package types (#17496)

* User agent

* Update to use header

* Fix build on cli

* Replace unsandboxed with unknown

* Apply feedback

* Prevent sending null values
This commit is contained in:
Bernd Schoolmann
2025-11-27 00:22:59 +01:00
committed by GitHub
parent 6f5491f7dc
commit eb4fd42153
7 changed files with 50 additions and 0 deletions

View File

@@ -329,6 +329,25 @@ export abstract class BrowserPlatformUtilsService implements PlatformUtilsServic
return autofillCommand;
}
async packageType(): Promise<string | null> {
switch (this.getDevice()) {
case DeviceType.ChromeExtension:
return "Chrome Extension";
case DeviceType.FirefoxExtension:
return "Firefox Extension";
case DeviceType.OperaExtension:
return "Opera Extension";
case DeviceType.EdgeExtension:
return "Edge Extension";
case DeviceType.VivaldiExtension:
return "Vivaldi Extension";
case DeviceType.SafariExtension:
return "Safari Extension";
default:
return "Unknown Browser Extension";
}
}
/**
* Triggers the offscreen document API to copy the text to the clipboard.
*/