diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2024-07-10 17:11:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-10 17:11:34 +0100 |
| commit | 69def05f759f29384ca242f57adc8600aff6de72 (patch) | |
| tree | 160d523ef8a938ad0b701ed5d320bbda2030ad4c /ui/src/state | |
| parent | chore(deps): update prost-types (#2251) (diff) | |
| download | atuin-69def05f759f29384ca242f57adc8600aff6de72.zip | |
fix(gui): weekInfo call on Edge (#2252)
Diffstat (limited to 'ui/src/state')
| -rw-r--r-- | ui/src/state/store.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/state/store.ts b/ui/src/state/store.ts index 3a843d35..1e835cbd 100644 --- a/ui/src/state/store.ts +++ b/ui/src/state/store.ts @@ -17,6 +17,7 @@ import { import { invoke } from "@tauri-apps/api/core"; import { sessionToken, settings } from "./client"; +import { getWeekInfo } from "@/lib/utils"; // I'll probs want to slice this up at some point, but for now a // big blobby lump of state is fine. @@ -47,8 +48,7 @@ let state = (set: any, get: any): AtuinState => ({ shellHistory: [], calendar: [], - // @ts-ignore - weekStart: new Intl.Locale(navigator.language).getWeekInfo().firstDay, + weekStart: getWeekInfo().firstDay, refreshAliases: () => { invoke("aliases").then((aliases: any) => { |
