mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 02:33:46 +00:00
[BEEEP] Allow linking to ciphers (#760)
This commit is contained in:
@@ -242,8 +242,6 @@ export abstract class StateService<T extends Account = Account> {
|
||||
setLocalData: (value: string, options?: StorageOptions) => Promise<void>;
|
||||
getLocale: (options?: StorageOptions) => Promise<string>;
|
||||
setLocale: (value: string, options?: StorageOptions) => Promise<void>;
|
||||
getLoginRedirect: (options?: StorageOptions) => Promise<any>;
|
||||
setLoginRedirect: (value: any, options?: StorageOptions) => Promise<void>;
|
||||
getMainWindowSize: (options?: StorageOptions) => Promise<number>;
|
||||
setMainWindowSize: (value: number, options?: StorageOptions) => Promise<void>;
|
||||
getMinimizeOnCopyToClipboard: (options?: StorageOptions) => Promise<boolean>;
|
||||
|
||||
@@ -1633,19 +1633,6 @@ export class StateService<
|
||||
);
|
||||
}
|
||||
|
||||
async getLoginRedirect(options?: StorageOptions): Promise<any> {
|
||||
return (await this.getGlobals(this.reconcileOptions(options, this.defaultInMemoryOptions)))
|
||||
?.loginRedirect;
|
||||
}
|
||||
|
||||
async setLoginRedirect(value: any, options?: StorageOptions): Promise<void> {
|
||||
const globals = await this.getGlobals(
|
||||
this.reconcileOptions(options, this.defaultInMemoryOptions)
|
||||
);
|
||||
globals.loginRedirect = value;
|
||||
await this.saveGlobals(globals, this.reconcileOptions(options, this.defaultInMemoryOptions));
|
||||
}
|
||||
|
||||
async getMainWindowSize(options?: StorageOptions): Promise<number> {
|
||||
return (await this.getGlobals(this.reconcileOptions(options, this.defaultInMemoryOptions)))
|
||||
?.mainWindowSize;
|
||||
|
||||
Reference in New Issue
Block a user