From 1f1dc84483b7396cee3f036b1c7f04f7d8a57382 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 7 Nov 2025 16:16:43 +0000 Subject: [PATCH] Add type annotation and logging to catch block per code review Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- src/app.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 57bdf793..f18e4a19 100644 --- a/src/app.ts +++ b/src/app.ts @@ -14,8 +14,9 @@ export function rootContainer(container: any) { cookieLocaleKey: 'lang', localStorageLocaleKey: 'lang', }).slice(0, 2); - } catch (e) { + } catch (e: unknown) { // Handle decodeURIComponent errors from malformed cookies + console.warn('Failed to determine locale from cookies:', e); currentLocale = ''; }