mirror of
https://github.com/bitwarden/browser
synced 2026-01-07 19:13:39 +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:
@@ -185,6 +185,7 @@ export class WindowMain {
|
||||
|
||||
await this.createWindow();
|
||||
resolve();
|
||||
|
||||
if (this.argvCallback != null) {
|
||||
this.argvCallback(process.argv);
|
||||
}
|
||||
|
||||
@@ -151,4 +151,20 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
|
||||
getAutofillKeyboardShortcut(): Promise<string> {
|
||||
return null;
|
||||
}
|
||||
|
||||
async packageType(): Promise<string> {
|
||||
if (ipc.platform.isMacAppStore) {
|
||||
return "MacAppStore";
|
||||
} else if (ipc.platform.isWindowsStore) {
|
||||
return "WindowsStore";
|
||||
} else if (ipc.platform.isAppImage) {
|
||||
return "AppImage";
|
||||
} else if (ipc.platform.isSnapStore) {
|
||||
return "Snap";
|
||||
} else if (ipc.platform.isFlatpak) {
|
||||
return "Flatpak";
|
||||
} else {
|
||||
return "Unknown";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user