diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-11-19 16:47:18 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-11-19 16:47:18 -0600 |
| commit | fff817b654aaf4d4d2569f845c588cffb753df2f (patch) | |
| tree | 2e09879b58a814496fc5aa9661c715a5d5ae853e /src | |
| parent | 8706364d90551cd716fdcc1974be4e5a2a752dd1 (diff) | |
| download | invidious-fff817b654aaf4d4d2569f845c588cffb753df2f.tar.gz invidious-fff817b654aaf4d4d2569f845c588cffb753df2f.tar.bz2 invidious-fff817b654aaf4d4d2569f845c588cffb753df2f.zip | |
Remove timestamp fallback for nojs
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/comments.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index 5f7b34c0..372e58ed 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -507,7 +507,7 @@ def content_to_comment_html(content) length_seconds = watch_endpoint["startTimeSeconds"].as_i video_id = watch_endpoint["videoId"].as_s - text = %(<a onmouseenter='this["href"]="javascript:void();"' onclick="player.currentTime(#{length_seconds})" href="/watch?v=#{video_id}&t=#{length_seconds}">#{text}</a>) + text = %(<a href="javascript:void();" onclick="player.currentTime(#{length_seconds})">#{text}</a>) elsif url = run["navigationEndpoint"]["commandMetadata"]?.try &.["webCommandMetadata"]["url"].as_s text = %(<a href="#{url}">#{text}</a>) end |
