fix: remove unused imports and simplify boolean comparison

This commit is contained in:
Jadilson Guedes
2026-02-16 16:41:43 -03:00
committed by Peter Steinberger
parent fe613297a7
commit 1bb2d65ff3
3 changed files with 2 additions and 6 deletions

View File

@@ -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;

View File

@@ -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";

View File

@@ -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();