Prevent new windows with Ctrl+Click on links

This commit is contained in:
loucass003 committed 2026-04-21 23:45:19 +02:00
1 parent 789ba55af5
commit d071aa442d
1 file changed
+4
+4
View File
@@ -360,6 +360,10 @@ function createWindow() {
if (mainWindow) menu.popup({ window: mainWindow });
});
mainWindow.webContents.setWindowOpenHandler(() => {
return { action: "deny" };
});
}
const checkEnvironmentVariables = () => {