sindresorhus/electron-context-menu

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

開放

#152 建立於 2021年11月27日

 (2 則留言) (0 個反應) (0 位負責人)JavaScript (167 個分叉)user submission
enhancementhelp wanted

倉庫指標

星標
 (1,471 顆星)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南