mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
Make attachments open in a new tab/browser
This commit is contained in:
@@ -111,13 +111,9 @@ async function createMainWindow(app: App) {
|
||||
}
|
||||
|
||||
function configureWebContents(webContents: WebContents, spellcheckEnabled: boolean) {
|
||||
if (!mainWindow) {
|
||||
return;
|
||||
}
|
||||
|
||||
remoteMain.enable(webContents);
|
||||
|
||||
mainWindow.webContents.setWindowOpenHandler((details) => {
|
||||
webContents.setWindowOpenHandler((details) => {
|
||||
async function openExternal() {
|
||||
(await import('electron')).shell.openExternal(details.url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user