Skip to content

Commit

Permalink
Add support for copying hashtag links (#5538)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Aug 12, 2024
1 parent 0a524ad commit 69b1011
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 @@ -94,7 +94,7 @@ function runApp() {
const path = urlParts[1]

if (path) {
visible = ['/channel', '/watch'].some(p => path.startsWith(p)) ||
visible = ['/channel', '/watch', '/hashtag'].some(p => path.startsWith(p)) ||
// Only show copy link entry for non user playlists
(path.startsWith('/playlist') && !/playlistType=user/.test(path))
}
Expand Down Expand Up @@ -131,6 +131,8 @@ function runApp() {
return `${origin}/playlist?list=${id}`
case 'channel':
return `${origin}/channel/${id}`
case 'hashtag':
return `${origin}/hashtag/${id}`
case 'watch': {
let url

Expand Down

0 comments on commit 69b1011

Please sign in to comment.