Skip to content

Commit 69b1011

Browse files
authored
Add support for copying hashtag links (#5538)
1 parent 0a524ad commit 69b1011

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function runApp() {
9494
const path = urlParts[1]
9595

9696
if (path) {
97-
visible = ['/channel', '/watch'].some(p => path.startsWith(p)) ||
97+
visible = ['/channel', '/watch', '/hashtag'].some(p => path.startsWith(p)) ||
9898
// Only show copy link entry for non user playlists
9999
(path.startsWith('/playlist') && !/playlistType=user/.test(path))
100100
}
@@ -131,6 +131,8 @@ function runApp() {
131131
return `${origin}/playlist?list=${id}`
132132
case 'channel':
133133
return `${origin}/channel/${id}`
134+
case 'hashtag':
135+
return `${origin}/hashtag/${id}`
134136
case 'watch': {
135137
let url
136138

0 commit comments

Comments
 (0)