mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-26 03:46:28 -08:00
Prevent new windows with Ctrl+Click on links
This commit is contained in:
1 parent
789ba55af5
commit
d071aa442d
1 file changed
+4
@@ -360,6 +360,10 @@ function createWindow() {
|
||||
|
||||
if (mainWindow) menu.popup({ window: mainWindow });
|
||||
});
|
||||
|
||||
mainWindow.webContents.setWindowOpenHandler(() => {
|
||||
return { action: "deny" };
|
||||
});
|
||||
}
|
||||
|
||||
const checkEnvironmentVariables = () => {
|
||||
|
||||
Reference in new issue
Block a user