Skip to content

Commit

Permalink
Fix regression with the context menu
Browse files Browse the repository at this point in the history
The entries that are supposed to only appear at links appeared on the
whole document.
  • Loading branch information
c3er committed Jul 10, 2024
1 parent e5d4e1c commit d34b469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function contextMenuHandler(event) {
)
}

const linkElement = fittingTarget(target, /a/)
const linkElement = fittingTarget(target, /^a$/)
if (linkElement) {
menu.append(
new MenuItem({
Expand Down

0 comments on commit d34b469

Please sign in to comment.