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:
@@ -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(),
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user