Skip to content

Commit d34b469

Browse files
committed
Fix regression with the context menu
The entries that are supposed to only appear at links appeared on the whole document.
1 parent e5d4e1c commit d34b469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ function contextMenuHandler(event) {
212212
)
213213
}
214214

215-
const linkElement = fittingTarget(target, /a/)
215+
const linkElement = fittingTarget(target, /^a$/)
216216
if (linkElement) {
217217
menu.append(
218218
new MenuItem({

0 commit comments

Comments
 (0)