add help button to attachment list

This commit is contained in:
zadam
2023-07-14 21:59:43 +02:00
parent 30bcd1764a
commit 906082a6b2
5 changed files with 36 additions and 15 deletions

View File

@@ -98,11 +98,9 @@ async function createMainWindow(app) {
function configureWebContents(webContents, spellcheckEnabled) {
require("@electron/remote/main").enable(webContents);
webContents.on('new-window', (e, url) => {
if (url !== webContents.getURL()) {
e.preventDefault();
require('electron').shell.openExternal(url);
}
mainWindow.webContents.setWindowOpenHandler((details) => {
require("electron").shell.openExternal(details.url);
return { action: 'deny' }
});
// prevent drag & drop to navigate away from trilium