fix: open links in OS default browser
Resolves https://kolaente.dev/vikunja/desktop/issues/130
This commit is contained in:
parent
da183cd0d5
commit
99153187d7
8
main.js
8
main.js
@ -17,10 +17,10 @@ function createWindow() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Open external links in the browser
|
// Open external links in the browser
|
||||||
mainWindow.webContents.on('new-window', function (e, url) {
|
mainWindow.webContents.setWindowOpenHandler(({ url }) => {
|
||||||
e.preventDefault()
|
shell.openExternal(url);
|
||||||
shell.openExternal(url)
|
return { action: 'deny' };
|
||||||
})
|
});
|
||||||
|
|
||||||
// Hide the toolbar
|
// Hide the toolbar
|
||||||
mainWindow.setMenuBarVisibility(false)
|
mainWindow.setMenuBarVisibility(false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user