summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-04-07 16:50:26 +0200
committerSebastian Holmin <sebastian.holmin@mullvad.net>2025-05-28 13:25:25 +0200
commit97e5a14f0286af3677668c48cc5bb72945f8c206 (patch)
treed38c1c51b5bfb7101c58aa75d7176eb52f194961
parent71ba412d9778b31bad6413ba764fa94a5272c463 (diff)
downloadmullvadvpn-97e5a14f0286af3677668c48cc5bb72945f8c206.tar.xz
mullvadvpn-97e5a14f0286af3677668c48cc5bb72945f8c206.zip
Allow options property in state
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/lib/history.tsx1
-rw-r--r--desktop/packages/mullvad-vpn/src/shared/ipc-types.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/lib/history.tsx b/desktop/packages/mullvad-vpn/src/renderer/lib/history.tsx
index afea9582ab..316b628e8f 100644
--- a/desktop/packages/mullvad-vpn/src/renderer/lib/history.tsx
+++ b/desktop/packages/mullvad-vpn/src/renderer/lib/history.tsx
@@ -216,6 +216,7 @@ export default class History {
scrollPosition: state?.scrollPosition ?? [0, 0],
expandedSections: state?.expandedSections ?? {},
transition: state?.transition ?? TransitionType.none,
+ options: state?.options,
};
}
diff --git a/desktop/packages/mullvad-vpn/src/shared/ipc-types.ts b/desktop/packages/mullvad-vpn/src/shared/ipc-types.ts
index 67d1539b36..403ec6ab35 100644
--- a/desktop/packages/mullvad-vpn/src/shared/ipc-types.ts
+++ b/desktop/packages/mullvad-vpn/src/shared/ipc-types.ts
@@ -19,6 +19,7 @@ export interface LocationState {
scrollPosition: [number, number];
expandedSections: Record<string, boolean>;
transition: TransitionType;
+ options?: Array<string>;
}
export interface IHistoryObject {