mirror of
https://github.com/bitwarden/jslib
synced 2025-12-17 16:53:20 +00:00
[bug] Properly define stored window state (#638)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { StateVersion } from "../../enums/stateVersion";
|
||||
import { EnvironmentUrls } from "./environmentUrls";
|
||||
import { WindowState } from "./windowState";
|
||||
|
||||
export class GlobalState {
|
||||
enableAlwaysOnTop?: boolean;
|
||||
@@ -11,7 +12,7 @@ export class GlobalState {
|
||||
ssoState?: string;
|
||||
rememberedEmail?: string;
|
||||
theme?: string = "light";
|
||||
window?: Map<string, any> = new Map<string, any>();
|
||||
window?: WindowState = new WindowState();
|
||||
twoFactorToken?: string;
|
||||
disableFavicon?: boolean;
|
||||
biometricAwaitingAcceptance?: boolean;
|
||||
|
||||
10
common/src/models/domain/windowState.ts
Normal file
10
common/src/models/domain/windowState.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export class WindowState {
|
||||
width?: number;
|
||||
height?: number;
|
||||
isMaximized?: boolean;
|
||||
// TODO: displayBounds is an Electron.Rectangle.
|
||||
// We need to establish some kind of client-specific global state, similiar to the way we already extend a base Account.
|
||||
displayBounds: any;
|
||||
x?: number;
|
||||
y?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user