TagSpaces is an offline, open source, document manager with tagging support
chore: documentation-as-code for electron configuration
Ilian Sapundshiev8a01a93c52fc
diff --git a/src/main/main.ts b/src/main/main.tsindex ff4514118..d72d623cd 100644--- a/src/main/main.ts+++ b/src/main/main.ts@@ -99,6 +99,13 @@ const browserWindowOptions: BrowserWindowConstructorOptions = {titleBarStyle: isMacLike ? 'hidden' : 'default',webPreferences: {spellcheck: true,+ // Renderer is fully isolated: all main-process access goes through the+ // `electronIO` contextBridge in preload.ts. These match Electron's secure+ // defaults — kept explicit so an unrelated webPreferences change can't+ // silently regress them.+ contextIsolation: true,+ sandbox: true,+ nodeIntegration: false,preload:app.isPackaged || !isDebug? path.join(__dirname, 'preload.js')