mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
removed link context menu on JS-only links
This commit is contained in:
parent
ccdb41841e
commit
94b57dadd7
@ -82,7 +82,7 @@ if (utils.isElectron()) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.linkURL.length !== 0 && params.mediaType === 'none') {
|
if (!["", "javascript:", "about:blank#blocked"].includes(params.linkURL) && params.mediaType === 'none') {
|
||||||
items.push({
|
items.push({
|
||||||
title: `Copy link`,
|
title: `Copy link`,
|
||||||
uiIcon: "copy",
|
uiIcon: "copy",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user