From 69def05f759f29384ca242f57adc8600aff6de72 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Wed, 10 Jul 2024 17:11:34 +0100 Subject: fix(gui): weekInfo call on Edge (#2252) --- ui/src/state/store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/src/state') 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) => { -- cgit v1.3.1