sindresorhus/electron-context-menu

Ability to hide "Copy Link" and "Save Link As" for `file://` protocol

Open

#152 opened on 2021年11月27日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)JavaScript (167 forks)user submission
enhancementhelp wanted

Repository metrics

Stars
 (1,471 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

Currently, the package allows copying links that are not really links and just internal files.

It would be awesome if there was a way to disable file:// links from being treated as links.

Alternatively, maybe we can pass a function instead of a callback into showCopyLink so we can fine-tune the behaviour.

コントリビューターガイド