sindresorhus/electron-context-menu

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

Open

#152 aperta il 27 nov 2021

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (167 fork)user submission
enhancementhelp wanted

Metriche repository

Star
 (1471 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor