Apply additional security recommendations (#2050)

* enable sandbox

* enable CSP (umami tentatively works?) and reduce amount of ipc APIs exposed

* remove csp from index
This commit is contained in:
Kendall Garner
2026-05-23 05:09:22 +00:00
committed by GitHub
parent 0de1e1aa3e
commit 7befd70e21
19 changed files with 179 additions and 190 deletions
+2 -2
View File
@@ -21,14 +21,14 @@ export const UpdateAvailableDialog = () => {
useEffect(() => {
if (!isElectron()) return;
const handleUpdateAvailable = (_event: any, newVersion: string) => {
const handleUpdateAvailable = (newVersion: string) => {
if (versionDismissed !== newVersion) {
setVersion(newVersion);
setOpened(true);
}
};
window.api.ipc.on('update-available', handleUpdateAvailable);
window.api.utils.rendererUpdateAvailable(handleUpdateAvailable);
return () => {
window.api.ipc.removeListener?.('update-available', handleUpdateAvailable);