diff --git a/ui/src/i18n/lib/translate.ts b/ui/src/i18n/lib/translate.ts index d16c99437e..54d573b67e 100644 --- a/ui/src/i18n/lib/translate.ts +++ b/ui/src/i18n/lib/translate.ts @@ -50,7 +50,7 @@ class I18nManager { } else { return; } - this.translations[locale] = module[locale.replace("-", "_")] as TranslationMap; + this.translations[locale] = module[locale.replace("-", "_")]; } catch (e) { console.error(`Failed to load locale: ${locale}`, e); return; diff --git a/ui/src/ui/app-render.ts b/ui/src/ui/app-render.ts index ef35489fac..93ccf8833a 100644 --- a/ui/src/ui/app-render.ts +++ b/ui/src/ui/app-render.ts @@ -51,17 +51,13 @@ import { saveSkillApiKey, updateSkillEdit, updateSkillEnabled, - type SkillMessage, } from "./controllers/skills.ts"; import { icons } from "./icons.ts"; import { normalizeBasePath, TAB_GROUPS, - iconForTab, - pathForTab, subtitleForTab, titleForTab, - type Tab, } from "./navigation.ts"; import { renderAgents } from "./views/agents.ts"; import { renderChannels } from "./views/channels.ts"; diff --git a/ui/src/ui/views/overview.ts b/ui/src/ui/views/overview.ts index e9c4c312ec..a3988ffdae 100644 --- a/ui/src/ui/views/overview.ts +++ b/ui/src/ui/views/overview.ts @@ -86,7 +86,7 @@ export function renderOverview(props: OverviewProps) { return null; } const isSecureContext = typeof window !== "undefined" ? window.isSecureContext : true; - if (isSecureContext !== false) { + if (isSecureContext) { return null; } const lower = props.lastError.toLowerCase();