1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-13 15:03:26 +00:00

Check Windows Portable For SecureStorage Support

This commit is contained in:
Justin Baur
2024-12-26 08:59:30 -05:00
parent 5af03ed2fb
commit b476ec57c8
2 changed files with 6 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ import {
isFlatpak,
isMacAppStore,
isSnapStore,
isWindowsPortable,
isWindowsStore,
} from "../utils";
@@ -145,6 +146,7 @@ export default {
isDev: isDev(),
isMacAppStore: isMacAppStore(),
isWindowsStore: isWindowsStore(),
isWindowsPortable: isWindowsPortable(),
isFlatpak: isFlatpak(),
isSnapStore: isSnapStore(),
isAppImage: isAppImage(),

View File

@@ -132,7 +132,10 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
}
supportsSecureStorage(): boolean {
return true;
// When using windows portable it's expected that all data is stored in the local `data.json` file
// if things instead get saved into Windows Credential Manager and then the user tries to move
// their Bitwarden executable to another computer they would be unable to unlock.
return !ipc.platform.isWindowsPortable;
}
getAutofillKeyboardShortcut(): Promise<string> {