refactor(desktop-electron): enable contextIsolation and sandbox (#23523)

This commit is contained in:
Brendan Allan
2026-04-21 12:38:59 +08:00
committed by GitHub
parent 4964ce480c
commit eb9906420f
10 changed files with 55 additions and 54 deletions
@@ -1,7 +1,5 @@
import { initI18n, t } from "./i18n"
export const UPDATER_ENABLED = () => window.__OPENCODE__?.updaterEnabled ?? false
export async function runUpdater({ alertOnFail }: { alertOnFail: boolean }) {
await initI18n()
try {