mirror of
https://github.com/bitwarden/browser
synced 2025-12-29 06:33:40 +00:00
This reverts commit cf24113924.
This commit is contained in:
@@ -5,7 +5,7 @@ import { ConstantsService } from 'jslib/services';
|
||||
export class HtmlStorageService implements StorageService {
|
||||
private localStorageKeys = new Set(['appId', 'anonymousAppId', 'rememberedEmail', 'passwordGenerationOptions',
|
||||
ConstantsService.disableFaviconKey, 'rememberEmail', 'enableGravatars', 'enableFullWidth',
|
||||
ConstantsService.themeKey, ConstantsService.localeKey, ConstantsService.autoConfirmFingerprints,
|
||||
ConstantsService.localeKey, ConstantsService.autoConfirmFingerprints,
|
||||
ConstantsService.vaultTimeoutKey, ConstantsService.vaultTimeoutActionKey, ConstantsService.ssoCodeVerifierKey,
|
||||
ConstantsService.ssoStateKey, 'ssoOrgIdentifier']);
|
||||
private localStorageStartsWithKeys = ['twoFactorToken_', ConstantsService.collapsedGroupingsKey + '_'];
|
||||
@@ -26,12 +26,6 @@ export class HtmlStorageService implements StorageService {
|
||||
if (vaultTimeoutAction == null) {
|
||||
await this.save(ConstantsService.vaultTimeoutActionKey, 'lock');
|
||||
}
|
||||
|
||||
// Default theme to match the browser if the theme isn't set
|
||||
const theme = await this.get<string>(ConstantsService.themeKey);
|
||||
if (theme == null) {
|
||||
await this.save(ConstantsService.themeKey, 'themeDefaultSet');
|
||||
}
|
||||
}
|
||||
|
||||
get<T>(key: string): Promise<T> {
|
||||
|
||||
Reference in New Issue
Block a user