Skip to content

Commit

Permalink
* Make copy link entry in right click menu to only show for non user …
Browse files Browse the repository at this point in the history
…playlists
  • Loading branch information
PikachuEXE committed Feb 27, 2024
1 parent 017eb03 commit 8d6a128
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ function runApp() {
const path = urlParts[1]

if (path) {
visible = ['/playlist', '/channel', '/watch'].some(p => path.startsWith(p))
visible = ['/channel', '/watch'].some(p => path.startsWith(p)) ||
// Only show copy link entry for non user playlists
(path.startsWith('/playlist') && !/playlistType=user/.test(path))
}
} else {
visible = true
Expand Down

0 comments on commit 8d6a128

Please sign in to comment.