open using external browser

This commit is contained in:
arc-alex
2023-12-12 15:46:29 +01:00
parent fdee764c28
commit d763f3f6b9
+5
View File
@@ -138,6 +138,11 @@ function createWindow() {
});
win.setMenu(null);
win.webContents.setWindowOpenHandler(({ url }) => {
shell.openExternal(url);
return { action: 'deny' };
});
}
app.disableHardwareAcceleration();