mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
client: Fix open note custom when no terminal
This commit is contained in:
parent
2e86ae6556
commit
67528789ed
@ -72,7 +72,7 @@ async function openCustom(type, entityId, mime) {
|
|||||||
const terminal = terminals[index];
|
const terminal = terminals[index];
|
||||||
if (!terminal) {
|
if (!terminal) {
|
||||||
console.error('Open Note custom: No terminal found!');
|
console.error('Open Note custom: No terminal found!');
|
||||||
open(getFileUrl(entityId), {url: true});
|
open(getFileUrl(type, entityId), {url: true});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
exec(`which ${terminal}`, (error, stdout, stderr) => {
|
exec(`which ${terminal}`, (error, stdout, stderr) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user